Skip to content

Commit f1143b9

Browse files
committed
Merge branch 'patch-2' of https://github.com/hwwr/Arduino into hwwr-patch-3
2 parents 74e73e8 + 0a3b3ea commit f1143b9

File tree

1 file changed

+23
-0
lines changed
  • hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src

1 file changed

+23
-0
lines changed

hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h

+23
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,15 @@
2626

2727
extern "C" {
2828
#include "include/wl_definitions.h"
29+
#include "smartconfig.h"
2930
}
3031

3132
#include "IPAddress.h"
3233
#include "WiFiClient.h"
3334
#include "WiFiServer.h"
3435

36+
void smartconfig_call_back(void *data);
37+
3538
enum WiFiMode { WIFI_STA = 1, WIFI_AP = 2, WIFI_AP_STA = 3 };
3639

3740
class ESP8266WiFiClass
@@ -42,6 +45,13 @@ class ESP8266WiFiClass
4245

4346
void mode(WiFiMode);
4447

48+
/* Start Wifi reconnection
49+
* used for Smartconfig
50+
* no param.
51+
*/
52+
int begin();
53+
54+
4555
/* Start Wifi connection for OPEN networks
4656
*
4757
* param ssid: Pointer to the SSID string.
@@ -203,6 +213,19 @@ class ESP8266WiFiClass
203213
*/
204214
void printDiag(Print& dest);
205215

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+
206229
friend class WiFiClient;
207230
friend class WiFiServer;
208231

0 commit comments

Comments
 (0)