We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af8b9db commit b59a4f1Copy full SHA for b59a4f1
libraries/SocketWrapper/WiFi.h
@@ -79,8 +79,13 @@ class WiFiClass : public NetworkInterface {
79
return true;
80
}
81
82
- int status() {
83
- struct wifi_iface_status status = {0};
+ int status() {
+ sta_iface = net_if_get_wifi_sta();
84
+ netif = sta_iface;
85
+ if (net_mgmt(NET_REQUEST_WIFI_IFACE_STATUS, netif, &sta_state,
86
+ sizeof(struct wifi_iface_status))) {
87
+ return WL_NO_SHIELD;
88
+ }
89
90
if (net_mgmt(NET_REQUEST_WIFI_IFACE_STATUS, netif, &status,
91
sizeof(struct wifi_iface_status))) {
0 commit comments