mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
WiFi library compatibility fixes
This commit is contained in:
@ -76,7 +76,7 @@ int ESP8266WiFiClass::begin(const char* ssid, const char *passphrase)
|
|||||||
wifi_station_connect();
|
wifi_station_connect();
|
||||||
ETS_UART_INTR_ENABLE();
|
ETS_UART_INTR_ENABLE();
|
||||||
wifi_station_dhcpc_start();
|
wifi_station_dhcpc_start();
|
||||||
return 0;
|
return status();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ESP8266WiFiClass::config(IPAddress local_ip, IPAddress gateway, IPAddress subnet)
|
void ESP8266WiFiClass::config(IPAddress local_ip, IPAddress gateway, IPAddress subnet)
|
||||||
|
@ -137,6 +137,15 @@ public:
|
|||||||
*/
|
*/
|
||||||
char* SSID();
|
char* SSID();
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Return the current network RSSI. Note: this is just a stub, there is no way to
|
||||||
|
* get the RSSI in the Espressif SDK yet.
|
||||||
|
*
|
||||||
|
* return: RSSI value (currently 0)
|
||||||
|
*/
|
||||||
|
|
||||||
|
int32_t RSSI() { return 0; }
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Start scan WiFi networks available
|
* Start scan WiFi networks available
|
||||||
*
|
*
|
||||||
|
@ -48,6 +48,7 @@
|
|||||||
#define WL_MAX_ATTEMPT_CONNECTION 10
|
#define WL_MAX_ATTEMPT_CONNECTION 10
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
WL_NO_SHIELD = 255, // for compatibility with WiFi Shield library
|
||||||
WL_IDLE_STATUS = 0,
|
WL_IDLE_STATUS = 0,
|
||||||
WL_NO_SSID_AVAIL,
|
WL_NO_SSID_AVAIL,
|
||||||
WL_SCAN_COMPLETED,
|
WL_SCAN_COMPLETED,
|
||||||
|
Reference in New Issue
Block a user