Skip to content

5. Wi-Fi Provisioning, SoftAP & Credentials ​

Calling WIFI_OPEN powers up the ESP32-C3, starts SoftAP DYJ-HD-AP (http://192.168.4.1:80), and transfers SD card ownership from nRF52840 to ESP32-C3.

ReAI Recording Card SDK Documentation › Wi-Fi Provisioning & SoftAP
SDK v0.0.9 (MIT)BLE Passthrough + SoftAP HTTPAP >= 0.3.0 / Wi-Fi >= 0.0.4 · Status ver >= 0.1.0 · Creds >= 0.1.3

Protocol Summary ​

  • BLE commands: WIFI_OPEN (35s timeout), WIFI_SCAN, WIFI_CONNECT {"ssid","password"}, WIFI_CRED_LIST / WIFI_CRED_DEL, WIFI_CLOSE.
  • SoftAP HTTP (192.168.4.1): GET /api/files, GET /api/files/download?path=<no-leading-slash>, DELETE /api/files/delete?path=<no-leading-slash>.
  • Browser tip: Open the downloaded HTML file locally (file://) or run card-wifi-proxy.mjs to bypass HTTPS Mixed Content blocking for http://192.168.4.1.

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

Downloadable Examples ​

HTML · BLE + HTTPExample 05 · Wi-Fi Provisioning & 192.168.4.1 AP Transfer

Standalone HTML page for BLE Wi-Fi scan/connect/credentials plus direct http://192.168.4.1 AP file download.

05-wifi-provisioning-and-ap.html
Node / BunLocal Wi-Fi AP CORS Proxy

Forwards http://192.168.4.1 to http://127.0.0.1:8790 with CORS headers.

card-wifi-proxy.mjs

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