1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-09-06 19:08:12 +03:00

Check if AP exists before adding it (#5373)

This commit is contained in:
dav1901
2018-11-28 03:01:15 +02:00
committed by Develo
parent 5c4db3acf4
commit 5fcb8f1dac
3 changed files with 38 additions and 4 deletions

View File

@@ -53,12 +53,14 @@ class ESP8266WiFiMulti {
~ESP8266WiFiMulti();
bool addAP(const char* ssid, const char *passphrase = NULL);
bool existsAP(const char* ssid, const char *passphrase = NULL);
wl_status_t run(void);
private:
WifiAPlist APlist;
bool APlistAdd(const char* ssid, const char *passphrase = NULL);
bool APlistExists(const char* ssid, const char *passphrase = NULL);
void APlistClean(void);
};