https://github.com/kentaylor/WiFiManager?files=1
I manage to make it connect to my SSID while in the config portal but when I exit and the esp01s tries to connect on its own I get a idle status error.
My code is here:
https://github.com/quique123/AutoconnectKenTaylor
And the serial monitor is here:
*WM: Request redirected to captive portal
*WM: Handle root
*WM: WiFi save
*WM: Parameter
*WM:
*WM:
*WM: Parameter
*WM: thingspeakapikey
*WM: bde919c2b47c5f12
*WM: Parameter
*WM: sensordht22
*WM: T
*WM: Parameter
*WM: pinsda
*WM: 2
*WM: Parameter
*WM: pinscl
*WM: 14
*WM: Sent wifi save page
*WM: Connecting to new AP
*WM: Connecting wifi with new parameters...
*WM: previous settings invalidated
*WM: After waiting...
*WM: 5.66
*WM: seconds
*WM: Connection result:
*WM: WL_CONNECTED
*WM: Request redirected to captive portal
*WM: Handle root
*WM: Handle root
*WM: Request redirected to captive portal
*WM: Handle root
*WM: Server Close
*WM: Sent server close page
Connected...yeey :)
Saving config file
{"thingspeakApiKey":"bde919c2b47c5f12","sensorDht22":true,"pinSda":2,"pinScl":14}
Config file was successfully saved
⸮
ets Jan 8 2013,rst cause:1, boot mode:(3,6)
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v8b899c12
~ld
Starting
PIFFS opened:
{"thingspeakApiKey":"bde919c2b47c5f12","sensorDht22":true,"pinSda":2,"pinScl":14}
Config file was successfully parsed
Mode: STA
PHY mode: N
Channel: 1
AP id: 0
Status: 0
Auto connect: 0
SSID (6): thanos
Passphrase (26): 9F5195BBD679AAE6
BSSID set: 0
After waiting 0.00 secs in setup() connection result is 0
Failed to connect, finishing setup anyway
connecting to santiapps.com
connection failed
connecting to santiapps.com
connection failed
It seems to save and read the config.json file just fine