[GH-ISSUE #507] Esp8266 can't connect to wifi afeter deepsleep #425

Closed
opened 2026-02-28 01:25:13 +03:00 by kerem · 4 comments
Owner

Originally created by @acca84 on GitHub (Feb 6, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/507

Hello,
I have an ESP12E Amica board wich works well expected if i call esp.deepsleep(µs) AND is connected to a 3.7v battery to Vin pin.

It works well when powered by usb with or without deepsleep.
It works well on battery without deepsleep
But if i power it by battery and put it into deepsleep, it can't connect. Even if i power it back from usb.
I can see the following debug message in the serial console :
mounting FS... mounted file system reading config file opened config file {"domoticz_server":"192.168.1.73","domoticz_port":"8081","IDX":"1973","IDXINTER":"1964","IDXINTEROTA":"2058"} parsed json *WM: Adding parameter *WM: domoticz_server *WM: Adding parameter *WM: domoticz_port *WM: Adding parameter *WM: IDX *WM: Adding parameter *WM: IDXINTER *WM: Adding parameter *WM: IDXINTEROTA *WM: *WM: AutoConnect *WM: Connecting as wifi client... *WM: Using last saved values, should be faster *WM: Connection result: *WM: 0 *WM: SET AP STA *WM: *WM: Configuring access point... *WM: AutoConnectAP *WM: password *WM: AP IP address: *WM: 192.168.4.1 *WM: HTTP server started

then if i reconfigure it it reboots but can't connect.

I have to force a wifimanager reset to make it work
Could you help me please ?
Regards

Originally created by @acca84 on GitHub (Feb 6, 2018). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/507 Hello, I have an ESP12E Amica board wich works well expected if i call esp.deepsleep(µs) AND is connected to a 3.7v battery to Vin pin. It works well when powered by usb with or without deepsleep. It works well on battery without deepsleep But if i power it by battery and put it into deepsleep, it can't connect. Even if i power it back from usb. I can see the following debug message in the serial console : `mounting FS... mounted file system reading config file opened config file {"domoticz_server":"192.168.1.73","domoticz_port":"8081","IDX":"1973","IDXINTER":"1964","IDXINTEROTA":"2058"} parsed json *WM: Adding parameter *WM: domoticz_server *WM: Adding parameter *WM: domoticz_port *WM: Adding parameter *WM: IDX *WM: Adding parameter *WM: IDXINTER *WM: Adding parameter *WM: IDXINTEROTA *WM: *WM: AutoConnect *WM: Connecting as wifi client... *WM: Using last saved values, should be faster *WM: Connection result: *WM: 0 *WM: SET AP STA *WM: *WM: Configuring access point... *WM: AutoConnectAP *WM: password *WM: AP IP address: *WM: 192.168.4.1 *WM: HTTP server started ` then if i reconfigure it it reboots but can't connect. I have to force a wifimanager reset to make it work Could you help me please ? Regards
kerem 2026-02-28 01:25:13 +03:00
  • closed this issue
  • added the
    invalid
    label
Author
Owner

@tablatronix commented on GitHub (Feb 6, 2018):

try development branch, no idea, probably one of the many bugs

<!-- gh-comment-id:363507832 --> @tablatronix commented on GitHub (Feb 6, 2018): try development branch, no idea, probably one of the many bugs
Author
Owner

@acca84 commented on GitHub (Feb 6, 2018):

Ok, how to do that please ?

Thx

<!-- gh-comment-id:363532675 --> @acca84 commented on GitHub (Feb 6, 2018): Ok, how to do that please ? Thx
Author
Owner

@acca84 commented on GitHub (Feb 6, 2018):

Ok. I found it

<!-- gh-comment-id:363554264 --> @acca84 commented on GitHub (Feb 6, 2018): Ok. I found it
Author
Owner

@acca84 commented on GitHub (Feb 6, 2018):

I found my mistake, i had this code in order to reset by pushing a button :

 if ( digitalRead(TRIGGER_PIN) == LOW ) {
    Serial.println("EFFACEMENT DES PARAMETRES");
    wifiManager.resetSettings();
  }

But i didn't pull up trigger_pin
i think voltage on trigger_pin was floating but sufficient to avoid reset, but voltage was not sufficient when powered on battery then a reset (unperfect ?) was done.
This was not a Wifimanager problem
sorry

<!-- gh-comment-id:363569431 --> @acca84 commented on GitHub (Feb 6, 2018): I found my mistake, i had this code in order to reset by pushing a button : ``` if ( digitalRead(TRIGGER_PIN) == LOW ) { Serial.println("EFFACEMENT DES PARAMETRES"); wifiManager.resetSettings(); } ``` But i didn't pull up trigger_pin i think voltage on trigger_pin was floating but sufficient to avoid reset, but voltage was not sufficient when powered on battery then a reset (unperfect ?) was done. This was not a Wifimanager problem sorry
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#425
No description provided.