Use an esp32-camera supported device to "snap" pictures and publish them via MQTT.
The ESP32-CAM enabled device will subscribe to a configured MQTT topic and wait for the "snap" command, this command will trigger an action to capture and send an image over MQTT to a configured topic (might be a different topic to the one used for the "snap" command).
A concrete example may be to use an ESP32-CAM device to communicate with a user created Telegram bot, then take snapshots and share them from a Telegram account.
The project needs to be configured before building it for the first time. Run the "menuconfig" of the project and configure all the items listed under the esp32cam_snap menu
idf.py menuconfigOnce the project is configured, it should be possible run build, flash and monitor it:
idf.py build
idf.py flash monitorTo exit the monitor use Ctrl + ].
To generate the component documentation, Doxygen needs to be locally installed. The documentation can be generated with the following command:
cd doc/component/documentation
doxygenThe documentation in HTML format is stored in the html folder.