JAndrassy / WiFiEspAT

Arduino networking library. Standard Arduino WiFi networking API over ESP8266 or ESP32 AT commands.
GNU Lesser General Public License v2.1
290 stars 44 forks source link

SetupPersistentWiFiConnection not connecting to network #63

Closed alidekker closed 2 years ago

alidekker commented 3 years ago

Setup: ESP 01 directly connected to PC with USB-Serial converter. Flashed the ESP 01 with firmware from ESP8266_AT_LoBo GitHub repository. Checked the installation by issuing a number of AT commands and changed for test the baudrate with AT commands. All went well. /Tools/ChangeATBaudRate, /Tools/CheckFirmware and /Tools/PrintPersistentSetting all went well. The problem came in /Tools/SetupPersistentWiFiConnection where no connection to the network could be established. I tried my 2 internal networks and an Android hotspot. It seems that there is perhaps a too small timeframe for the connection to be established and its timing out too soon so I put a -while-not-connected statement- in, to no avail. A number of other examples depend on the persistent WiFi connection so here I am.....stuck. It will be my mistake but please enlighten.

JAndrassy commented 3 years ago

WiFi.begin only returns after joining AP or fail. while-not-connected only makes sense for the automatic connection with persistent settings.

try to clear the flash system parameter area. with esptool write blank.bin at 0xFE000