设备运维
重启、清空记录、启用/停用等下行指令。
重启
POST
/Device/reboot
Base: http://<设备IP>:18082
Body 可空。成功后设备即将重启。
清空消费记录
POST
/Device/clearRecords
Base: http://<设备IP>:18082
| 字段 | 类型 | 说明 |
|---|---|---|
include_offline | number | 1 同时清空未上报离线流水 |
启用/停用
POST
/Device/setEnabled
Base: http://<设备IP>:18082
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
enabled | boolean|string | 是 | true/false 或 1/0 |
enabled=1 启用,enabled=0 停用。停用后设备不再发起在线消费/充值上行。