Can't connect WiFi after restart

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
User avatar
tve
Posts: 216
Joined: Wed Jan 01, 2020 10:12 pm
Location: Santa Barbara, CA
Contact:

Re: Can't connect WiFi after restart

Post by tve » Sat Apr 11, 2020 5:56 pm

I'm not sure what you mean... You can't use ADC and Wifi at the same time. You can certainly use the GPIO pins you list (some need a specific value at boot).

User avatar
marsex
Posts: 2
Joined: Tue Sep 03, 2019 5:21 pm

Re: Can't connect WiFi after restart

Post by marsex » Thu Apr 30, 2020 4:14 pm

Any real solution or workaround for this issue?
Any details on why it happens?
Any ideas on what GPIO pin may affect the WiFi connection?

User avatar
tve
Posts: 216
Joined: Wed Jan 01, 2020 10:12 pm
Location: Santa Barbara, CA
Contact:

Re: Can't connect WiFi after restart

Post by tve » Thu Apr 30, 2020 5:27 pm

Sorry, my previous comment was imprecise: you cannot use ADC2 at the same time as Wifi. You can use ADC1. This is a limitation of the ESP-IDF Wifi code: ADC2 gets used internally for Wifi calibration type of purposes, see https://docs.espressif.com/projects/esp ... s/adc.html

solarjoe
Posts: 11
Joined: Wed Oct 28, 2020 9:07 pm

Re: Can't connect WiFi after restart

Post by solarjoe » Sun Nov 15, 2020 11:19 am

I just had the same problem when trying to use the Async MQTT client.

When connecting to the Wifi for the first time manually in boot.py it worked fine, but when the MQTT client was trying to
reconnect to a broker that had been gone I got the error

Code: Select all

wifi: STA_DISCONNECTED, reason:15 (4WAY_HANDSHAKE_TIMEOUT)
wifi: STA_DISCONNECTED, reason:205 (CONNECTION_FAIL)
I found the problem after 30 minutes that I will never get back:
when copy-pasting the Wifi SSID I pasted it as Wifi password, too. ;)

Post Reply