We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7612f0f commit e74bbd6Copy full SHA for e74bbd6
libraries/SocketWrapper/WiFi.h
@@ -17,8 +17,8 @@ class WiFiClass : public NetworkInterface {
17
~WiFiClass() {
18
}
19
20
- bool begin(const char *ssid, const char *passphrase, wl_enc_type security = ENC_TYPE_UNKNOWN,
21
- bool blocking = true) {
+ int begin(const char *ssid, const char *passphrase, wl_enc_type security = ENC_TYPE_UNKNOWN,
+ bool blocking = true) {
22
sta_iface = net_if_get_wifi_sta();
23
netif = sta_iface;
24
sta_config.ssid = (const uint8_t *)ssid;
@@ -43,7 +43,7 @@ class WiFiClass : public NetworkInterface {
43
K_FOREVER);
44
45
46
- return true;
+ return status();
47
48
49
bool beginAP(char *ssid, char *passphrase, int channel = WIFI_CHANNEL_ANY,
0 commit comments