Skip to content

Commit 6452f1e

Browse files
committed
WiFi wait for event NET_EVENT_WIFI_CONNECT_RESULT in blocking mode
1 parent 2b7243d commit 6452f1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/SocketWrapper/WiFi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class WiFiClass: public NetworkInterface
3737

3838
NetworkInterface::begin(false, NET_EVENT_WIFI_MASK);
3939
if (blocking) {
40-
net_mgmt_event_wait_on_iface(sta_iface, NET_EVENT_WIFI_AP_STA_CONNECTED, NULL, NULL, NULL, K_FOREVER);
40+
net_mgmt_event_wait_on_iface(sta_iface, NET_EVENT_WIFI_CONNECT_RESULT, NULL, NULL, NULL, K_FOREVER);
4141
}
4242

4343
return true;

0 commit comments

Comments
 (0)