Skip to content

Commit 8dd7120

Browse files
committed
WiFi: make begin() return status()
1 parent 0988cb7 commit 8dd7120

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/SocketWrapper/WiFi.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class WiFiClass : public NetworkInterface {
1717
~WiFiClass() {
1818
}
1919

20-
bool begin(const char *ssid, const char *passphrase, wl_enc_type security = ENC_TYPE_UNKNOWN,
20+
int begin(const char *ssid, const char *passphrase, wl_enc_type security = ENC_TYPE_UNKNOWN,
2121
bool blocking = true) {
2222
sta_iface = net_if_get_wifi_sta();
2323
netif = sta_iface;
@@ -43,7 +43,7 @@ class WiFiClass : public NetworkInterface {
4343
NULL, K_FOREVER);
4444
}
4545

46-
return true;
46+
return status();
4747
}
4848

4949
bool beginAP(char *ssid, char *passphrase, int channel = WIFI_CHANNEL_ANY,

0 commit comments

Comments
 (0)