SwitchBot-MQTT-BLE-ESP32 icon indicating copy to clipboard operation
SwitchBot-MQTT-BLE-ESP32 copied to clipboard

wifi time out error

Open mikejrh opened this issue 2 years ago • 5 comments

I am getting this output when i run the sketch in Arduino-IDE on an Esp-Wroom board "wifi:timeout when WiFi un-init, type=4". The wifiscan sketch example works.

mikejrh avatar Nov 13 '22 20:11 mikejrh

have you started with a fresh arduino install and cleared out the ~/Documents/Arduino/libraries folder ?

you could have a conflicting wifi library

what esp32 model are you using?

devWaves avatar Nov 14 '22 20:11 devWaves

using a ESP32-WROOM-32 board. fresh install with these libraries: NimBLE-Arduino, EspMQTTClient. ArduinoJson, CRC32, ArduinoQueue and I had to install PubSubClient-2.8.0 after an error message in compilation.

mikejrh avatar Nov 14 '22 21:11 mikejrh

I'm having same issue (same board - ESP32 devkit v1). I can see in my router's GUI that it keeps re-connecting and then disconnecting over and over.

I tried to set printSerialOutputForDebugging = true but nothing more is shown in monitor. Just this:

Switchbot ESP32 starting... Starting NimBLE Client E (1165) wifi:timeout when WiFi un-init, type=4

and that's it.

Tadeas3 avatar Dec 07 '22 20:12 Tadeas3

not sure. I can't reproduce

Does you SSID or password has special or non-alphanumeric characters?

devWaves avatar Dec 07 '22 22:12 devWaves

Both are alphanumeric only.

Tadeas3 avatar Dec 08 '22 10:12 Tadeas3