Skip to content
This repository was archived by the owner on Nov 18, 2024. It is now read-only.

Fix issue #3522 (WiFi does not restart after stopped) (#4114) #1

Merged
merged 1 commit into from
Dec 23, 2020

Conversation

crossan007
Copy link

@crossan007 crossan007 commented Dec 22, 2020

Assuming we don't want to simply update to the latest commit from the espressif upstream library, this cherry-picks in the fix from espressif#4114

I have not yet tested this

This commit fixes issue espressif#3522 where WiFi service fails to start after a WiFi.disconnect(true) or a WiFi.mode(WIFI_OFF).

…ssif#4114)

This commit fixes issue espressif#3522 where WiFi service fails to start after a WiFi.disconnect(true) or a WiFi.mode(WIFI_OFF).
@crossan007
Copy link
Author

I flashed this to my TBeam, and it does appear to fix the WiFi coming back from after sleeping, but it exposes an issue where the HTTP server does not come back from after sleeping

Screenshot shows device progressing from:

  1. online
  2. web ui loading and refreshing
  3. device going to sleep
  4. pressing user middle button
  5. device re-connecting to wifi (and responding to ICPM ping)
  6. web app unable to get new data from device

I tried refreshing the browser too (thinking that maybe my web app isn't handling the reconnect gracefully (meshtastic/web#3), but refreshing the browser just gave a timeout, so I think the HTTP server just isn't coming back.

@mc-hamster maybe you can figure that one out.

image

@geeksville
Copy link
Member

This pull request has been mentioned on Meshtastic. There might be relevant details there:

https://meshtastic.discourse.group/t/a-favor-requested-from-someone-running-windows/1957/3

@geeksville geeksville merged commit c29e0bc into meshtastic:master Dec 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants