Adding getMode function to ESP8266WiFiClass.cpp
Adding getMode function to ESP8266WiFiClass.h
Changing return type of getMode to WiFiMode for clarity
Changing return type of getMode to WiFiMode for clarity
Add return typecast
When network interface is down, some nasty things happen, for instance tcp_connect returns without ever calling error callback.
This change adds some workarounds for that: before doing a tcp connect and DNS resolve we check if there is a route available.
Also added a listener for wifi events which stops (aborts) all the WiFiClients and WiFiUDPs when wifi is disconnected. This should
help libraries detect disconnect properly.
- begin changes
allow setting BSSID/MAC and Channel of an AP for faster connection (#261)
now checks if ssid and passphrase to big
selecting Wifi mode in better way (fix for #28)
- ESP8266WiFiMulti uses the new functions to auto select best AP even in a multi AP WiFi network (more the one AP has same SSID)
- add new functions to get current Connected AP:
uint8_t * BSSID(void);
int32_t Channel(void);
- add new functions to get infos from scanned networks:
uint8_t * BSSID(uint8_t networkItem);
int32_t Channel(uint8_t networkItem);
bool isHidden(uint8_t networkItem);
bool getNetworkInfo(uint8_t networkItem, const char** ssid, uint8_t * encryptionType, int32_t * RSSI, uint8_t ** BSSID, int32_t * channel, bool * isHidden);
- auto select ssid with best signal
- for debugging enable DEBUG_WIFI_MULTI macro and call Serial.setDebugOutput(true);
change ESP8266WiFiClass::status() return type to wl_status_t