Skip to content

6. Cloud Upload & Autonomous Device Sync ​

From Main 0.3.9 + Wi-Fi 0.1.3, the card can wake Wi-Fi, auto-connect to a saved network, and HTTP POST all recordings to your server via SYNC_START or charge_on -> sync_upload.

ReAI Recording Card SDK Documentation › Cloud Upload & Sync
SDK v0.0.9 (MIT)BLE Control + ESP32 HTTP POSTSTA Upload >= Wi-Fi 0.1.0 · SYNC_START >= Main 0.3.9 / Wi-Fi 0.1.3

upload_url & State Machine ​

  • 63-byte cap: Keep upload_url concise (e.g., https://api.example.com/d/tok01); firmware attaches x-device-id, x-filename, x-filesize, and x-format: adpcm.
  • Sync states: opening → connecting → uploading → closing → done / error.

Live Web Demo ​

Disconnected
Web Bluetooth is unavailable in this browser/context (requires Chrome/Edge on HTTPS or localhost). You can still test every API using the Virtual Card Simulator.
SYNC STATE MACHINE
idle
Wire Protocol Log (BLE NUS / HTTP)
Connect a real card or Virtual Card Simulator to inspect live protocol frames.

Downloadable Examples ​

HTML + Web BluetoothExample 06 · upload_url Config & SYNC_START Console

Validates the 63-byte upload_url cap, triggers SYNC_START, and monitors live SYNC_STATUS transitions.

06-cloud-sync-and-upload.html
Python 3 stdlibPython 3 Zero-Dependency Upload Receiver

Reference server handling Expect: 100-continue, x-filesize truncation, atomic .part writes, and sha256 JSON receipts.

upload-receiver-server.py

ReAI Recording Card Developer Documentation · MIT Open Hardware SDK · Partner Assets