Open Balaji-Ganesh opened 1 year ago
A light on few lines..
reg.
- Fewer times, connection to ESP32 is breaking.
OK, why not change the middleware from using websockets to python-socket.io as like the Flask-webapp. So that, like Web-client, it polls for auto re-connect and gets connected to ESP32. This fulfills the need right - connection breaking right..?
reg.
- as a client -- for ESP32.
This appears completely fine, as as per the need, the ESP32 should able to serve both Camera feed and collision feed simultaneously.
reg.
- Use a router ... (for assigning static IP.)
In middleware, can update the IP address of ESP32 easily right.
Now if would like to solve the error (mentioned in description, simply as connection breaking)
Message: '[EXCEPTION] Camera streaming interrupted. Error: '
Arguments: (ConnectionClosedError(None, Close(code=1011, reason='keepalive ping timeout'), None),)
websockets
to python-socketio
and make sure to find and enable autoReconnnect
to True
. So, that, even if by some cause, it gets disconnected, by socketio's polling mechanism, can connect back to server.
Need
Current setup (of ESP32)
Possible issues that raise out (When becomes a client)
Solutions