Skip to content

8. KV Configuration, Firmware OTA & Lifecycle ​

Manage dual-chip KV storage (CONFIG_SET/GET/DEL), run Wi-Fi OTA checks (OTA_WIFI_CHECK / GET /api/ota/check), upload .bin images with SHA-256 verification, and trigger RESTART / SHUTDOWN.

ReAI Recording Card SDK Documentation › KV Config, OTA & Lifecycle
SDK v0.0.9 (MIT)BLE 5 NUS + HTTP OTA + DFU (0xFE59)Short-key routing >= Main 0.3.7 / Wi-Fi 0.1.0 · SHA-256 AP OTA >= Wi-Fi 0.1.1

KV Routing Rules ​

  • Keys starting with wifi_, ending with _wifi, or matching upload_url, api_url, ota_path route to ESP32 NVS (requires wifiOpen == true).
  • Keys <= 31 bytes, values <= 63 bytes.

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.
Route -> nRF52840
Wire Protocol Log (BLE NUS / HTTP)
Connect a real card or Virtual Card Simulator to inspect live protocol frames.

Downloadable Example ​

HTML + Web BLE/HTTPExample 08 · KV Config, OTA & Device Lifecycle

Inspect/edit nRF and ESP32 KV keys, query cloud OTA versions, upload AP .bin firmware with SHA-256, and send RESTART/SHUTDOWN.

08-config-ota-lifecycle.html

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