-
Notifications
You must be signed in to change notification settings - Fork 636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cant reconnect to router after random disconnect from router. #1748
Comments
Is it the same when wifi scanning is disabled? ( |
Yes.. I am trying to solve this problem since May 15. |
Does it reconnect after btw I did see the edit about the verision. lets mention that the version we are testing is 1.13.6-dev @ 820d8c4 |
wifi.reset didint work.
code
i think |
wifi reset when in AP mode
it connects when i enable my router and it also stay in AP mode... |
Debug screen stops at
telnet stops at:
21 is:
why debug screen stops at |
when it is connected to router and wifi.ap, it starts in AP mode and didnt connect to router.. Which is my problem :) |
i think this will help
It reconnects to router if connection drops and changes to AP mode.. @xoseperez maybe you can commit if this doesnt break other codes... i read about sonoff basic problem like this.. |
@kiralikbeyin You missed my original question about the websockets or telnet, but I hope you had noticed their purpose. If either ws or telnet client objects are still there, wifi AP will stay up. Note that it will reconnect eventually, if neither of them are connected. That is the intended behaviour. espurna/code/espurna/telnet.ino Line 44 in 9ceca44
Whenever ws is disconnected: Line 442 in 9ceca44
Which may not ever happened, based on the bug description. Either because of onDisconnect / onTimeout not firing or whatever else is not handled properly (comething Core does not do, or something we must do or check) edit: And I hope this at least can be worked around by something as simple as closing the client manually. By your proposal, it will drop any connected clients immediately, because softAP will be brought down. |
And if by Lines 551 to 562 in 9ceca44
Lines 403 to 405 in 9ceca44
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
This issue will be auto-closed because there hasn't been any activity for two months. Feel free to open a new one if you still experience this problem. |
Bug description
Cant reconnect to router after random disconnect from router.
A clear and concise description of what the bug is.
RF bridge disconnects from router randomly (1-48 hours) but doesnt reconnect to router and begins AP mode.
Steps to reproduce
No idea
Expected behavior
Auto reconnect to router
Device information
[252621] [MAIN] CPU chip ID: 0xCACDE6
[252622] [MAIN] CPU frequency: 80 MHz
[252625] [MAIN] SDK version: 1.5.3(aec24ac9)
[252626] [MAIN] Core version: 2.3.0
[252627] [MAIN] Core revision: 159542381
[252630]
[252632] [MAIN] Flash chip ID: 0x144051
[252640]
[252647] [MAIN] Flash size (SDK) : 1048576 bytes / 256 sectors ( 0 to 255)
[252656] [MAIN] Reserved : 16384 bytes / 4 sectors ( 252 to 255)
[252661] [MAIN] EEPROM sectors: 251, 250
[252667] [MAIN] EEPROM: 4096 bytes initially | 3538 bytes used (86%) | 558 bytes free (13%)
[252674]
[252681] [MAIN] Last reset info: Fatal exception:4 flag:1 (WDT) epc1:0x40104ee8 epc2:0x00000000 epc3:0x00000000 excvaddr:0x00000000 depc:0x00000000
[252689] [MAIN] WebUI image: RFBRIDGE
[252697] [MAIN] Power: 3154 mV
[301645] [MAIN] Uptime: 301 seconds
[301649] [MAIN] Heap : 33376 bytes initially | 17240 bytes used (51%) | 16136 bytes free (48%)
[301651] [MAIN] Power: 3155 mV
[301654] [MAIN] Time: 2019-05-31 18:52:52
Tools used
Mac High Sierra 10.13.6
Chrome latest
Arduino 1.8.2
2.3.0
The text was updated successfully, but these errors were encountered: