mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +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();
|
||||
ETS_UART_INTR_ENABLE();
|
||||
wifi_station_dhcpc_start();
|
||||
return 0;
|
||||
return status();
|
||||
}
|
||||
|
||||
void ESP8266WiFiClass::config(IPAddress local_ip, IPAddress gateway, IPAddress subnet)
|
||||
|
@ -137,6 +137,15 @@ public:
|
||||
*/
|
||||
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
|
||||
*
|
||||
|
@ -48,6 +48,7 @@
|
||||
#define WL_MAX_ATTEMPT_CONNECTION 10
|
||||
|
||||
typedef enum {
|
||||
WL_NO_SHIELD = 255, // for compatibility with WiFi Shield library
|
||||
WL_IDLE_STATUS = 0,
|
||||
WL_NO_SSID_AVAIL,
|
||||
WL_SCAN_COMPLETED,
|
||||
|
Reference in New Issue
Block a user