HT sensor

Get device data

Request URL:
1
POST /provider/fetch
Copied!
Headers:
1
Content-Type: application/json
2
Authorization: Bearer {access_token}
Copied!
Body:
1
{
2
"serial_number" : "{HT Sensor Serial Number}"
3
}
Copied!
Response:
1
{
2
"provider": {
3
"mac": "8******8",
4
"version": 1,
5
"uptime": "2021-03-29T14:01:20.662Z",
6
"temperature": 23.4,
7
"humidity": 15.234375,
8
"batteryVoltage": 3.5,
9
"externalThermistor": {
10
"thermistorProperlyConnected": true,
11
"thermistorTemperature": 23.5
12
},
13
"ip": "78.130.149.149",
14
"port": 40342,
15
"timeOfRecord": "2021-03-29T14:06:24.729Z"
16
},
17
"_links": {
18
"self": {
19
"href": "/v1/provider/fetch"
20
}
21
}
22
}
Copied!

Set KeepAlive Time

Request URL:
1
POST /provider/send
Copied!
Headers:
1
Content-Type: application/json
2
Authorization: Bearer {access_token}
Copied!
Body:
1
{
2
"serial_number": “{HT Sensor Serial Number}”,
3
"command" : "set_keepalive_time",
4
"time" : 30 // in seconds
5
}
Copied!
Response:
1
{
2
"provider": [
3
254,
4
5,
5
0,
6
0
7
],
8
"_links": {
9
"self": {
10
"href": "/v1/provider/send"
11
}
12
}
13
}
Copied!
Last modified 5mo ago