RS-1 Deployment
OTA Flow (Verified)
Section titled “OTA Flow (Verified)”From rs-1/docs/firmware/HARDWAREOS_MODULE_OTA.md and rs-1/docs/contracts/PROTOCOL_MQTT.md:
- OTA is triggered via MQTT on
opticworks/{device_id}/ota/trigger. - Firmware is delivered over HTTPS and validated by SHA-256 before reboot.
- Devices report status on
opticworks/{device_id}/ota/status.
Cloud Services (Verified)
Section titled “Cloud Services (Verified)”From rs-1/docs/cloud/README.md and rs-1/docs/cloud/INFRASTRUCTURE.md:
- Cloudflare Workers handle OTA orchestration, device registry, and zone editor APIs.
- Cloudflare D1 stores device and zone data; R2 stores firmware binaries.
- EMQX provides MQTT transport with TLS.
- Secrets like
EMQX_API_KEY,SIGNING_KEY, andWEBHOOK_SECRETare set viawrangler secret put. - Deploys are documented with
wrangler deploy --env staging/production.
Manual Recovery (Verified)
Section titled “Manual Recovery (Verified)”From rs-1/README.md and rs-1/docs/firmware/HARDWAREOS_MODULE_OTA.md:
- Serial flashing over USB is the fallback when OTA is unavailable.
idf.py -p /dev/ttyUSB0 flashSources
Section titled “Sources”rs-1/docs/firmware/HARDWAREOS_MODULE_OTA.mdrs-1/docs/contracts/PROTOCOL_MQTT.mdrs-1/docs/cloud/README.mdrs-1/docs/cloud/INFRASTRUCTURE.mdrs-1/README.md