POST api/device/getbluetoothinfo
获取设备蓝牙信息
Request Information
Body Parameters
GetBlueToolthInfoModelName | Description | Type | Additional information |
---|---|---|---|
Imei |
设备Imei |
string |
None. |
Language |
语言选项 国内一般用zh-cn |
string |
Required |
TimeOffset |
手机当前时区,值为数字,如东八区为 8 ,西八区为 -8 |
decimal number |
Required |
AppId |
APP应用标识 平台申请后返回的APPID |
string |
Required |
Response Information
Resource Description
0. 表示成功 1100. 表示设备不存在
GetBlueToothInfoResultName | Description | Type | Additional information |
---|---|---|---|
Battery |
结果 |
decimal number |
None. |
Items | Collection of BlueToothInfo |
None. |
|
State | integer |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Battery": 1.1, "Items": [ { "MacID": "sample string 1", "RSSI": "sample string 2" }, { "MacID": "sample string 1", "RSSI": "sample string 2" } ], "State": 2, "Message": "sample string 3" }
application/xml, text/xml
Sample:
<GetBlueToothInfoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gps.OpenApi.Models.ResponseModels"> <Message>sample string 3</Message> <State>2</State> <Battery>1.1</Battery> <Items> <BlueToothInfo> <MacID>sample string 1</MacID> <RSSI>sample string 2</RSSI> </BlueToothInfo> <BlueToothInfo> <MacID>sample string 1</MacID> <RSSI>sample string 2</RSSI> </BlueToothInfo> </Items> </GetBlueToothInfoResult>