Device API
Register
text
POST /api/v1/device/registerUsed by a new ESP32 gateway to register with JKBMSR Cloud.
Login
text
POST /api/v1/device/loginUsed by a registered ESP32 gateway to receive a fresh JWT.
Dashboard Device History
text
GET /api/v1/dashboard/devices/:deviceId/telemetry/history
GET /api/v1/dashboard/devices/:deviceId/ota/historyUsed by the authenticated dashboard to show recent telemetry trends and persistent OTA runtime events for a visible device.