Thing Description OTAA 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"
    },
    "getDeviceKeys": {
      "title": "Get device keys",
      "description": "Get device keys for OTAA device"
    },
    "setDeviceKeys": {
      "title": "Set device keys",
      "description": "Set device keys for OTAA device",
      "input": {
        "type": "object",
        "properties": {
          "nwk_key": {
            "type": "string"
          }
        }
      }
    },
    "deleteDeviceKeys": {
      "title": "Delete device keys",
      "description": "Delete device keys for OTAA 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"
      }
    },
    "getDeviceKeys": {
      "title": "getDeviceKeys request is done",
      "description": "response of getDeviceKeys request",
      "data": {
        "type": "object"
      }
    },
    "setDeviceKeys": {
      "title": "setDeviceKeys request is done",
      "description": "response of setDeviceKeys 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 OTAA device.