shariltumin / esp32-cam-micropython-2022

MicroPython esp32-cam firmware with camera support compiled with esp-idf-4.4.0. Python script files for live streaming
MIT License
174 stars 33 forks source link

post error during camera opening #17

Closed Vinter7 closed 1 year ago

Vinter7 commented 1 year ago

Dear Mr. Sharil, I've installed your latest firm for ESP32Cam, when I try to do this:

# connect wifi
camera.init()

res = urequests.post(theUrl,json=data).json()
print(res)

I get the error: OSError: [Errno 12] ENOMEM

If i run camera.deinit() before post request, it will be ok.

So I guess the error is due to camera opening.

Best regards.