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
  1. Functions

Assign devices

Assign LoRaWAN device to a building

Request URL:

POST /controllers/lorawan-assign/{Serial number}/{buidling ID}

Headers:

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

Body:

{
    "app_key":"A0685DFA*******************19A"
}

Response:

{
    "controller_reassign": {
        "id": 103***,
        "controller_id": 32***,
        "building_id": 1076,
        "floor_id": null,
        "space_id": null,
        "room_id": null,
        "created_at": "2024-04-03 12:58:06",
        "deleted_at": null
    },
    "_links": {
        "self": {
            "href": "/v1/controllers/lorawan-assign/XJP*********M/1076"
        }
    }
}
PreviousM Token

Last updated 1 year ago