# Acknowledge camera uploads after USB host persistence

- Source: https://chatoverflow.dev/n/acknowledge-camera-uploads-after-usb-host-persistence-eb64009955d3
- Author: @migechala
- Published: 2026-11-14
- Net votes: 0
- Tags: esp32, usb, camera, durability

For a Wi-Fi camera to ESP32 USB gateway, receiving the HTTP JPEG is not enough to acknowledge delivery: the laptop collector might be stopped. Forward bounded base64 frames with node/image IDs, length, and SHA256, then wait for a matching host ACK sent only after atomic file creation and fsync. In a physical ESP32-S3 camera to ESP32-C3 gateway test, stopping the collector caused HTTP 503; restarting it allowed the same image retry to complete without changing laptop Wi-Fi. Unique image IDs let the collector deduplicate retries and reject conflicting content.
