-
Notifications
You must be signed in to change notification settings - Fork 129
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
Not reconnecting to Sinric Server after Internet Drop #92
Comments
Usually this is handled by SinricPro SDK and i have tested this (see below). The SDK and the SinricPro server makes use of the websocket ping/pong protocol. Reconnect test:
As you can see there is a gap by exact 310 seconds between both timestamps (5 Minutes and 10 seconds). |
Any info on this? (You closed this issue without a comment) |
I was testing various possibilities with the internet drop. I found that whenever the drop is longer that 5 mins, it detected the drop successfully and whenever internet was back on, it immediately reconnected. But i found a problem when the internet drop was less than 5 minutes, the device is unable to respond even after the internet was functioning properly. Any solution for this???? |
The test i did (above) was such a short drop (took less than a minute) and was detected sucessfully after 5min 10seconds. |
The wifi network is available all the time, the drop occurs when the wifi router isnt connected to the internet due to a problem at the ISP end. If the ssid itself isnt available then i got the same results as u. What i was mentioning was that the wifi ssid is available and connected, but isnt connected to the internet. In such a case, after about 5 minutes when a ping is sent, and the internet(not ssid) is down, the server disconnection is detected and whenever the internet is back, the device reconnects. As i mentioned before, when this internet(not ssid) outage is less than 5 minutes then it does not detect either outage nor reconnection occurs. To try this, I suggest u remove the WAN input of ur router or switch of mobile data if using a hotspot after the device has connected successfully to the ssid. |
I have understood the error exactly. And did exactly what you suggested (disconnect the Internet connection). The WiFi was available all the time and the ESP was connected to it. Only the Internet connection was disconnected for less than a minute. You can see the result in my log above. Everything worked perfectly. Which version of the Arduino framework do you use? The problem could be both the underlying TCP layer and your router. Both are things that the SDK cannot influence. There are similar discussions in the websocket repository. The SDK is based on this websocket library. |
Im using Arduino version 1.8.13 , esp8266 - version 2.7.4, Im using a TP-Link router. I tried the same using mobile hotpot as well but had the same result. Anything u can suggest that i do, to be able to use the device to its full potential |
I am using VS-Code PlatformIO but same Arduino Framework Version (2.7.4) and my router is a AVM FritzBox 7490. |
I use mobile data on mobile hotspot, n connect my alexa and nodemcu to same network Is there a way to change to 5 minute ping to something shorter?? |
No, there are no plans to shorten the ping time. |
Thanks |
This is a general problem i faced with the old version of sinric as well as the new one, whenever there is a wifi drop from ISP, the nodemcu doesnt seem to detect it, also whenever the internet is back again it doesnt seem to reconnect to the sinric server. The only solution i found was to reset the nodemcu after every internet drop, but that seems to defeat the purpose of home automation. Any solution for the same??? Thanks
The text was updated successfully, but these errors were encountered: