跳转至

系统管理 API

所有端点以 /api/v1/devices/{device_id} 为前缀。


GET /api/v1/devices/{device_id}/system/status

获取设备系统状态。请求通过 Proxy 转发给设备。

响应

{
  "success": true,
  "status": 200,
  "data": { "设备返回的系统状态数据" }
}

GET /api/v1/devices/{device_id}/system/settings

获取设备系统设置。

响应

{
  "success": true,
  "status": 200,
  "data": { "设备返回的系统设置" }
}

PUT /api/v1/devices/{device_id}/system/settings

更新设备系统设置。

请求

{
  "key": "setting_name",
  "value": "new_value"
}

响应

{
  "success": true,
  "status": 200,
  "data": { "更新结果" }
}

POST /api/v1/devices/{device_id}/system/settings/reset

重置设备系统设置到出厂默认值。

响应

{
  "success": true,
  "status": 200,
  "data": { "重置结果" }
}

POST /api/v1/devices/{device_id}/system/cal

启动设备标定流程。

响应

{
  "success": true,
  "status": 200,
  "data": { "标定结果" }
}