Open SiddhantShah2001 opened 5 years ago
Hi there. Thanks
disconnection detection is hard. It takes time for TCP/IP ACK to complete and close the connection properly. Sometime it's the router, sometimes it's the ISP, sometimes it's the sinric server resetting the connection. Best option is to detect disconnections in the client side and reconnect. Have you tried enabling websocket heartbeat ? https://github.com/Links2004/arduinoWebSockets/blob/master/src/WebSocketsClient.h#L91
This tend to improve the disconnect / reconnect detection. Also make sure setReconnectInterval is set
Other libraries like FauxmoESP and EspAlexa they emulate a belkin device or a hue device, I do not think this is the right thing to do. That's why i created Sinric.
Yeah i think the Heartbeats are enabled, not sure! I used the Example Sketch and just modified the Id and Stuff. Not sure if there's anything else to be done to Establish Heartbeat.
Oh and by the way i heard(read) about Sinic 2.0 in some other thread. Could you share some more details about it if it's not a problem ?! Like, What would be the new features in it ? When is it likely to be released ? and stuff like that in detail.
Sorry for such a late reply.
Any updates! I am facing the same issue The board connects for a long time... but after a while the board losses connection and fails to reconnect.. But in normal working times, the board reconnects to the wifi automatically. After long connections only the board fails to reconnect.
Kindly reply anyone faster
Hey there! Thank You for creating such a great Library/Platform. I really Appreciate your Efforts.
So here the Problem is that my ESP8266-module/NodeMCU disconnects from the Server randomly. To Revive the Connection i have to manually press the Reset Button on the Board or Turn of the Power Supply. Other way to Reconnect is to Restart the Router.
There are 2 Ways to Disconnect: i.e WiFi itself(Router) or the Server(Modem).
I have also used other Libraries like FauxmoESP and EspAlexa. They work Really Great and Handle the Disconnections very well (maybe because they are local servers).
But i find Sinric to be more Vast/Advanced and Easy to use. I am planning to do Full Home Automation but my Work's at a halt as:
Thank you for your valuable time! Hoping for a Positive Reply.