Balaji-Ganesh / ESP32-SelfDrivingCar

An undergraduate major project with ESP32-camera module and a Flask webclient
MIT License
0 stars 0 forks source link

Making ESP32-cam as a client from being a server #8

Open Balaji-Ganesh opened 1 year ago

Balaji-Ganesh commented 1 year ago

Need

Current setup (of ESP32)

Possible issues that raise out (When becomes a client)

Solutions

Balaji-Ganesh commented 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.

Balaji-Ganesh commented 1 year ago

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),)