更新设备信息
POST
ws://prt.zhmlxq.com:2346
请求参数
参数名
类型
描述
必填
event
device 类型
必填
print_code
print_code 打印码 示例 1234
必填
data
{"type":"status","msg":"离线","data":{"online_status":1}} type = status 更新打印机状态 online_status 0:离线 1:在线 2:故障 msg 打印机状态说明
必填
data
{"type":"consumable_status","msg":"","data":{"is_paper":1,"ink":20.22}} type = consumable_status 更新打印机耗材状态 is_paper 是否有纸【1有 0没有】ink 墨剩余量
必填