File tree 1 file changed +23
-0
lines changed
hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src
1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 26
26
27
27
extern " C" {
28
28
#include " include/wl_definitions.h"
29
+ #include " smartconfig.h"
29
30
}
30
31
31
32
#include " IPAddress.h"
32
33
#include " WiFiClient.h"
33
34
#include " WiFiServer.h"
34
35
36
+ void smartconfig_call_back (void *data);
37
+
35
38
enum WiFiMode { WIFI_STA = 1 , WIFI_AP = 2 , WIFI_AP_STA = 3 };
36
39
37
40
class ESP8266WiFiClass
@@ -42,6 +45,13 @@ class ESP8266WiFiClass
42
45
43
46
void mode (WiFiMode);
44
47
48
+ /* Start Wifi reconnection
49
+ * used for Smartconfig
50
+ * no param.
51
+ */
52
+ int begin ();
53
+
54
+
45
55
/* Start Wifi connection for OPEN networks
46
56
*
47
57
* param ssid: Pointer to the SSID string.
@@ -203,6 +213,19 @@ class ESP8266WiFiClass
203
213
*/
204
214
void printDiag (Print& dest);
205
215
216
+ /*
217
+ * Start SmartConfig
218
+ *
219
+ */
220
+ void setSmartLink ();
221
+
222
+ /*
223
+ * Query SmartConfig status, to decide when stop config
224
+ *
225
+ */
226
+ sc_status getSmartlinkStatus ();
227
+
228
+
206
229
friend class WiFiClient ;
207
230
friend class WiFiServer ;
208
231
You can’t perform that action at this time.
0 commit comments