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 0988cb7 commit 8dd7120Copy full SHA for 8dd7120
libraries/SocketWrapper/WiFi.h
@@ -17,7 +17,7 @@ class WiFiClass : public NetworkInterface {
17
~WiFiClass() {
18
}
19
20
- bool begin(const char *ssid, const char *passphrase, wl_enc_type security = ENC_TYPE_UNKNOWN,
+ int begin(const char *ssid, const char *passphrase, wl_enc_type security = ENC_TYPE_UNKNOWN,
21
bool blocking = true) {
22
sta_iface = net_if_get_wifi_sta();
23
netif = sta_iface;
@@ -43,7 +43,7 @@ class WiFiClass : public NetworkInterface {
43
NULL, 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