-
Notifications
You must be signed in to change notification settings - Fork 8
Description
MQTT might work for the image transfer. See for example https://www.reddit.com/r/esp32/comments/r6y28l/esp32_cam_how_to_send_good_quality_images_via_mqtt/, https://www.home-assistant.io/integrations/camera.mqtt/, etc. I think @kenzo-aspuru-takata dealt with sending images via MQTT with the OpenFlexure microscopes. This wouldn't really work for image streaming, but for point and shoot captures it's probably ok. However, while 256 MB/message upper limit probably won't be an issue, HiveMQ free tier is capped at 10 GB/month. Probably a major limiting factor for these workflows. https://www.google.com/search?q=hicemq+payload+limits. I've also recently cancelled the starter plan I had: #155
I propose using Amazon S3 as outlined in the "tip" from https://ac-microcourses.readthedocs.io/en/latest/courses/hello-world/1.5-data-logging.html#additional-resources. i.e., send a command to capture the image via MQTT to the device, use the AWS API via the Zero 2W to upload to an S3 bucket (I need to get this set up on one of our accounts), and send the S3 URI back to the orchestrator via MQTT (possibly after double checking that it can be accessed, i.e., if there's some latency).
@Jonathan-Woo would you feel comfortable / have time to try this out within the next two days after getting the point and shoot working?
xref: https://ac-microcourses.readthedocs.io/en/latest/courses/hello-world/1.4.1-onboard-led-temp.html and corresponding assignment, and see tip from 1.5 mentioned above for AWS links