MClimate API Documentation
  • MClimate API Documentation
  • MClimate LoRaWAN Devices
  • Basic endpoints
  • API Control - LoRaWAN devices
    • Vicki LoRaWAN
    • HT Sensor LoRaWAN
    • CO2 Sensor LoRaWAN
    • T-Valve LoRaWAN
    • Flood Sensor LoRaWAN
    • Open/Close Sensor LoRaWAN
    • Multipurpose Button LoRaWAN
    • Wireless Thermostat LoRaWAN
    • CO2 Display LoRaWAN
    • Fan Coil Thermostat LoRaWAN
  • API Control - wifi devices
    • Melissa
    • Bobbie
    • Smart Plug
    • Vicki LoRa
      • Vicki high priority commands
      • Summer Mode
    • HT Sensor LoRa
  • Functions
    • Schedules
    • Heating profiles
    • Thermostat mode
    • LoRaWAN FUOTA
    • M Token
    • Assign devices
Powered by GitBook
On this page
  • Get device data
  • Set KeepAlive Time
  1. API Control - wifi devices

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"
        }
    }
}
PreviousSummer ModeNextSchedules

Last updated 2 years ago