跳到主要内容

鼠标滚轮

调用说明

  • 请求参数
参数类型说明备注
fun字符串/mouse/wheel请求功能名
id字符串设备唯一ID多个设备用逗号隔开
direction字符串滚动方向up上,down下,left左,right右
len字符串设备唯一ID滚动长度1-127
number字符串设备唯一ID滚动次数
  • httpGet请求示例
curl --request GET \
--url 'http://192.168.9.9:9911/api/mouse/wheel?id=5C:F7:E6:CE:65:22&direction=up&len=30&number=1'
  • httpPost请求示例
curl --request POST \
--url http://192.168.9.9:9911/api \
--header 'content-type: multipart/form-data' \
--form fun=/mouse/wheel \
--form id=5C:F7:E6:CE:65:22 \
--form direction=up \
--form len=30 \
--form number=1
  • httpPost json请求示例【websocket也可发送同样json请求】
curl --request POST \
--url http://192.168.9.9:9911/api \
--header 'Content-Type: application/json' \
--data '{
"fun": "/mouse/wheel",
"data": {
"id": "1C:5C:F2:BC:D0:CC",
"direction": "up",
"len": 30,
"number": 3
}
}'

响应结果

{
"data": {
"code": 0,
"id": "5C:F7:E6:CE:65:22",
"message": "成功"
},
"status": 200,
"message": "成功",
"msgid": 0,
"fun": "/mouse/wheel"
}
  • 响应data数据字段说明