Skip to content

Commit e74bbd6

Browse files
committed
WiFi: make begin() return status()
1 parent 7612f0f commit e74bbd6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/SocketWrapper/WiFi.h

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

20-
bool begin(const char *ssid, const char *passphrase, wl_enc_type security = ENC_TYPE_UNKNOWN,
21-
bool blocking = true) {
20+
int begin(const char *ssid, const char *passphrase, wl_enc_type security = ENC_TYPE_UNKNOWN,
21+
bool blocking = true) {
2222
sta_iface = net_if_get_wifi_sta();
2323
netif = sta_iface;
2424
sta_config.ssid = (const uint8_t *)ssid;
@@ -43,7 +43,7 @@ class WiFiClass : public NetworkInterface {
4343
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)