Thing Description ABP Device
Example Thing Description
{
"@type": [
"swx:lorawan,devEUI=,deviceProfileID="
],
"id": "",
"title": "LoRaWAN Test Device",
"properties": {
"myReadProperty": {
"title": "My Read Property",
"type": "number",
"readOnly": true
},
"myWriteProperty": {
"title": "My Write Property",
"type": "number",
"@type": [
"swx:lorawan,f_port=1"
],
"readOnly": false
},
"enabled": {
"title": "Enabled",
"type": "boolean",
"readOnly": false
}
},
"actions": {
"getActivation": {
"title": "Get activation",
"description": "Get activation details for device"
},
"activate": {
"title": "Activate",
"description": "Activate ABP device",
"input": {
"type": "object",
"properties": {
"dev_addr": {
"type": "string"
},
"app_s_key": {
"type": "string"
},
"nwk_s_key": {
"type": "string"
}
}
}
},
"deactivate": {
"title": "Deactivate",
"description": "Deactivate ABP device"
},
"listDeviceQueueItems": {
"title": "List deviceQueue items",
"description": "List deviceQueue items",
"input": {
"type": "object",
"properties": {
"countOnly": {
"type": "boolean"
}
}
}
},
"flushDeviceQueue": {
"title": "Flush deviceQueue",
"description": "Flush deviceQueue"
},
"enqueue": {
"title": "Add item to deviceQueue",
"description": "Add item to deviceQueue",
"input": {
"type": "object",
"properties": {
"f_port": {
"type": "integer"
},
"data": {
"type": "string"
},
"jsonObject": {
"type": "string"
}
}
}
}
},
"events": {
"getActivation": {
"title": "getActivation request is done",
"description": "response of getActivation request",
"data": {
"type": "object"
}
},
"activate": {
"title": "activate request is done",
"description": "response of activate request",
"data": {
"type": "object"
}
},
"listDeviceQueueItems": {
"title": "listDeviceQueueItems request is done",
"description": "response of listDeviceQueueItems request",
"data": {
"type": "object"
}
},
"enqueue": {
"title": "enqueue request is done",
"description": "response of enqueue request",
"data": {
"type": "object"
}
}
}
}
The device profile has the flag to mark it as an ABP device.