generated from CubeCraft-Creations/Tracehound
[CUB-230] ESP32 offline status buffering and replay on reconnect #21
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Linear: CUB-230
Linear URL: https://linear.app/cubecraft-creations/issue/CUB-230/esp32-offline-status-buffering-and-replay-on-reconnect
Description
When venue Wi-Fi drops, ESP32 buffers status locally (SPIFFS) and replays on reconnect. Define: max buffer, FIFO eviction, MQTT replay protocol, hub-side dedup via (camera_id, recorded_at) uniqueness.
Imported Linear metadata
Imported Linear comment from CubeCraft Creations at
2026-05-23T12:29:49.397Zon CUB-230:Hub dedup work split to new sub-issue CUB-239 (created as CUB-239 instead of CUB-240 — corrected from earlier comment).
Evidence summary for firmware (ESP32) portion:
agent/pip/CUB-230-offline-buffer-replay1efd48eMoving to In Review — firmware portion is complete with evidence. Hub dedup tracked in CUB-239.
Imported Linear comment from CubeCraft Creations at
2026-05-23T07:42:56.807Zon CUB-230:Pip Dispatch Result — Partial
Firmware (ESP32) — COMPLETE:
/status_buffer.jsonwith JSON array of{recorded_at, status}entriesmax_buffer_entriesexceeded (default 100)esp32-config.json:max_buffer_entries,buffer_fileEvidence:
agent/pip/CUB-230-offline-buffer-replay1efd48efirmware/src/esp32-mqtt-bridge.cpp⚠️ Issues:
.pio/build/artifacts committed — need to remove build outputs from the branchNext: Hub dedup work split to new sub-issue CUB-240, will dispatch to Dex.
Imported Linear comment from CubeCraft Creations at
2026-05-22T02:28:31.613Zon CUB-230:@larry: missing @otto: context — cannot break down