HT Sensor LoRa

Get device data

Request URL:

POST /provider/fetch

Headers:

Content-Type: application/json
Authorization: Bearer {access_token}

Body:

{
  "serial_number" : "{HT Sensor Serial Number}"
}

Response:

{
    "provider": {
        "mac": "8******8",
        "version": 1,
        "uptime": "2021-03-29T14:01:20.662Z",
        "temperature": 23.4,
        "humidity": 15.234375,
        "batteryVoltage": 3.5,
        "externalThermistor": {
            "thermistorProperlyConnected": true,
            "thermistorTemperature": 23.5
        },
        "ip": "78.130.149.149",
        "port": 40342,
        "timeOfRecord": "2021-03-29T14:06:24.729Z"
    },
    "_links": {
        "self": {
            "href": "/v1/provider/fetch"
        }
    }
}

Set KeepAlive Time

Request URL:

POST /provider/send

Headers:

Content-Type: application/json
Authorization: Bearer {access_token}

Body:

{
  "serial_number": “{HT Sensor Serial Number}”,
  "command" : "set_keepalive_time",
  "time" : 30 // in seconds
}

Response:

{
    "provider": [
        254,
        5,
        0,
        0
    ],
    "_links": {
        "self": {
            "href": "/v1/provider/send"
        }
    }
}

Last updated