鼠标滚轮
调用说明
- 请求参数
参数 | 类型 | 说明 | 备注 |
---|---|---|---|
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数据字段说明
无