跳到主要内容

鼠标滚轮

请求参数

{
"fun":"mouse_wheel",//功能名
"msgid":0,//消息id,服务端接收后会原样返回,websocket连接可用用来异步转同步用。http模式直接填0
"data":{
"deviceid":"5C:1D:D9:ED:D9:DE",//设备id
"direction": "down", //滚轮方向(2选1 "up", "down" 上、下)
"length":30, //滚轮滚动长度,最多只能127
"number":2 //滚动次数
}
}

成功返回

{
"fun":"mouse_wheel",
"msgid":0,
"status":0, //0成功,非0失败
"data":{
"deviceid":"5C:1D:D9:ED:D9:DE"
},
"message":"成功"
}

失败返回

{
"data": {
"deviceid": "5C:1D:D9:ED:D9:DE" //设备id
}, //返回数据
"fun": "mouse_wheel", //功能号
"message": "没有绑定USB设备", //调用返回消息
"msgid": 0,
"status": 1
}