Page 1 of 1

repl Vs run

Posted: Fri Apr 22, 2022 1:32 am
by KJM
I've got an intermittent connection on the camera in an ESP32-CAM board. The board tells me when it failed to take a pic when I'm in interactive mode in the repl

Code: Select all

>>> buf=camera.capture()
E (36000) camera: Camera Capture Failed
but I can't figure out how to capture that result from within a program? buf contains 'false' when a capture fails in run mode, the same as it does in the repl, but how do I catch the 'Camera Capture Failed' output from within my program?