Azure / azure-sphere-samples

Samples for Azure Sphere
Other
223 stars 200 forks source link

Couldn't find any diagnostic information for network ID 0 #227

Closed matsujirushi closed 2 years ago

matsujirushi commented 2 years ago

Hi, I want to get diagnostic information of Wi-Fi, but it don't. I am running WiFi_HighLevelApp and it always shows "Couldn't find any diagnostic information for network ID 0".

My accesspoint cannot access Internet. WAN cable unpluged.

Remote debugging from host 192.168.35.1, port 49787
Wi-Fi application starting.
Each press of BUTTON_1 will advance through a cycle that adds, enables, disables, duplicates, and deletes a Wi-Fi example network.
Press BUTTON_2 to check if the device is connected to a Wi-Fi network, to retrieve the network diagnostics, to trigger a Wi-Fi network scan, and to print a deduplicated list of available Wi-Fi networks.
Opening SAMPLE_BUTTON_1 as input.
Opening SAMPLE_BUTTON_2 as input.

Finished configuring and adding the network with status: SUCCESS. By pressing BUTTON_1 the network will be enabled.

Finished enabling the network with status: SUCCESS. By pressing BUTTON_1 the network will be disabled.
INFO: Network is ready.
INFO: The device is connected to: TP-Link_4C38_2G : WPA2/PSK : -41 dB
INFO: Couldn't find any diagnostic information for network ID 0.

Could you tell me any idea?

matsujirushi commented 2 years ago

Sorry. I got a diagnostic information when Wi-Fi AccessPoint stop.

INFO: Network is not ready.
INFO: The device is not connected to a Wi-Fi network.
INFO: The network is 'enabled'.
INFO: The network is 'disconnected'.
INFO: The last reason to fail to connect to the network was: 2. Check 'wificonfig.h' to identify the reason of the error.
INFO: Last network connection failure happened at Fri Mar 11 08:59:40 2022