Skip to content

Commit 0e84629

Browse files
committed
WiFi: make begin() blocking by default
1 parent 1b107fd commit 0e84629

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
@@ -18,7 +18,7 @@ class WiFiClass : public NetworkInterface {
1818
}
1919

2020
bool begin(const char *ssid, const char *passphrase, wl_enc_type security = ENC_TYPE_UNKNOWN,
21-
bool blocking = false) {
21+
bool blocking = true) {
2222
sta_iface = net_if_get_wifi_sta();
2323
netif = sta_iface;
2424
sta_config.ssid = (const uint8_t *)ssid;
@@ -47,7 +47,7 @@ class WiFiClass : public NetworkInterface {
4747
}
4848

4949
bool beginAP(char *ssid, char *passphrase, int channel = WIFI_CHANNEL_ANY,
50-
bool blocking = false) {
50+
bool blocking = true) {
5151
if (ap_iface != NULL) {
5252
return false;
5353
}

0 commit comments

Comments
 (0)