Skip to content

Commit fcd22ed

Browse files
committed
WiFi: wait for event NET_EVENT_WIFI_CONNECT_RESULT in blocking mode
1 parent 3d40dec commit fcd22ed

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
@@ -39,7 +39,7 @@ class WiFiClass : public NetworkInterface {
3939

4040
NetworkInterface::begin(false, NET_EVENT_WIFI_MASK);
4141
if (blocking) {
42-
net_mgmt_event_wait_on_iface(sta_iface, NET_EVENT_WIFI_AP_STA_CONNECTED, NULL, NULL,
42+
net_mgmt_event_wait_on_iface(sta_iface, NET_EVENT_WIFI_CONNECT_RESULT, NULL, NULL,
4343
NULL, K_FOREVER);
4444
}
4545

0 commit comments

Comments
 (0)