-
Notifications
You must be signed in to change notification settings - Fork 58
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
ping time out #33
Comments
Hi, im still hoping to have more free time since I moved recently closer to work so I can resume my work let me know if your need help |
Hello @washo4evr , Any hint where we can search into your code to help you fixing this issue ? ++ |
Hi, Yes, I would recommend to look at void SocketIOClient::heartbeat(int select) I use the timer library to do that and it work I ordered an ESP32 last week, I should be getting it soon. Thanks for your patience |
Yes I have noticed that if you keep on sending data, the connexion never break. |
I have added an heartbeat each second => the ESP is connected and operational since 8 days (non stop !) . |
This is great news. from my testing, you can lower the heartbeat to every 30 s and it should be fine (will also save some power if running on battery) |
Yep, but do you have any hint of the root problem ? Or an heartbeat is required into the core structure of socket.io ? off topic: french btw ? I saw french words into your code ! |
@washo4evr just to let you know that considering that I have talking to my server each 3' to check if it is still online I don't need heartbeat at all. The server ping is just like the heartbeat function but with a server state as a return. My ESP uptime is now: 2 months without any reboot ! |
Hi, This is great news. I finally got my ESP32 working on my machine. |
Socket.IO v2.x + ESP32 are now supported |
Dear all, I don't know if this subject remains hot, however I would like to share how am I handling the pingTimeout. Hope this helps someone with the keep-alive issue. Cheers, |
Hi,
I am using socket.io and with Node.js on server. The client ESP8266 connects successfully but the problem that i am facing is 'ping time out'. When the connection is idle for around 1-2 minutes the the ESP8266 client ping time outs on the server and gets disconnected.
The text was updated successfully, but these errors were encountered: