I have an Arduino UNO R4 Wi-Fi board. I’m trying to scan for nearby Wi-Fi networks and list them on the Serial Monitor. Every time I attempt a scan, it either freezes or never returns any networks, even though the board can successfully connect to a known SSID if I provide the credentials.
The UNO R4 Wi-Fi is powered reliably via USB.
The board can connect to a known SSID 2.4Ghz (using hotspot from my phone), so the Wi-Fi hardware partially works.
But once connected (or disconnected), calling WiFi.scanNetworks() never succeeds.
The board prints status messages like “Scanning WiFi…” but never shows the results.
The same behavior occurs even when using official Arduino Wi-Fi scan examples or minimal sketches (the ones from the UNO R4 Wi-Fi library / WiFiS3).
Sometimes the Serial Monitor indicates “Please upgrade firmware,” but after updating the board core, it still gets stuck.
I’ve Tried:
- Updated to the latest Arduino IDE (2.1.0).
- Installed the latest Arduino UNO R4 Wi-Fi board core in the Boards Manager.
- Verified that no older library versions are conflicting.
- Attempted the ScanNetworks example from the Arduino docs.
- Tried minimal sketches that call WiFi.scanNetworks() in different ways (including after disconnecting from an AP).The code either hangs at “Scanning…” or returns -1.
- Tried to ensure the onboard Wi-Fi module firmware is up to date.
Has anyone else encountered scanning freezing on the UNO R4 Wi-Fi with the WiFiS3 library?
Are there known hardware limitations that prevent scanning on this device?
Any recommended official steps to further debug or confirm whether my board is defective?