1
0
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:
Ivan Grokhotkov
2014-12-29 01:20:27 +03:00
parent 2a8b94d1d3
commit 9d8f591c5f
3 changed files with 11 additions and 1 deletions

View File

@ -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)

View File

@ -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
* *

View File

@ -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,