When I run the WiFiScan example code, my Lolin S2 Mini seems to reboot during WiFi.scanNetworks(), unless I place the board on an anti-static bag or hold the corner of the board with my fingers (approximately around the 2 pads labeled 1/EN and a big ground pad at the corner). Presumably some pads are contacting, “solving” the problem. What could be the real problem and how do I solve it?
I've tried:
- 3 different USB-C to USB-A cables (generic, tablet, smartphone).
- Desktop and laptop USB3 and USB2 ports.
- A portable power bank that claims output of 5V, 1 Amp.
- A smartphone charger with built-in cable that claims output of 5V, 3 Amps.