lemariva / uPyCam

Take a photo with an ESP32-CAM running MicroPython
https://lemariva.com/blog/2019/09/micropython-how-about-taking-photo-esp32
Apache License 2.0
144 stars 42 forks source link

HTTP options work? #17

Open hoffberg opened 3 years ago

hoffberg commented 3 years ago

As a newbie to micopython and the ESP32-CAM I am trying to figure out how all of this code fits together...

I have reconfigured the config.py for the ESP32-CAM: app_config = { 'camera': 'ESP32-CAM', # camera -> 'ESP32-CAM' or 'M5CAMERA' 'led': 4, # led -> 4: ESP32-CAM or 14: M5CAMERA }

From what I can see, there are currently 2 options that can be communicated to the webserver; stream and flash. When I try to trigger either of the options, I don't see that they are updating the behavior of the system.

Neither of the following commands seem to change the behavior: Photo mode: http://<<board-ip>> or Streaming mode: http://<<board-ip>>/?stream=true

Setting the following command does not have any effect (it should be toggling the LED?): http//<>/?flash=true or setting it to false.

Any idea what I am doing wrong?