In this tutorial, you will learn how to connect to QIoT Suite Lite using CoAP.

Refer to the following tutorial to learn how to connect different development boards to QIoT Suite Lite:

Refer to the following link to learn how to establish IoT Application and Things:

You can also consult the QNAP GitHub at

Open IoT Applications to get CoAP settings

  • Open your IoT Applications and go to your Things.

  • Click the "Connect a Device" button.

  • Choose "CoAP" and click "Next".

  • Click "Download JSON file". The name of the file will be "resourceinfo.json".

* More information about "resourceinfo.json"
The following is example code from resourceinfo.json:

"myqnapcloudHost": "Not Available",
"clientId": "rpi2_1508915341",
"host": [
"r": "c08b5979-1f8f-42da-9085-d761707be65c",
"t": "r:e91d53d57729b9d0b59772f9f2a130dc",
"port": 25683,
"resources": [
"description": "",
"datatype": "Float",
"resourceid": "temp",
"topic": "r/qiot/things/admin/rpi2/temp",
"resourcename": "temp",
"resourcetypename": "Temperature",
"unit": "°C"

  • Reference:

    1. "myqnapcloudHost": If you connect the myqnapcloud DDNS services on your NAS and it will provide a Internet hostname that can connect to QIoT Suite Lite. If your encounter issues with ports, then refer the following article:

    2. "clientId": Devices identifiers.

    3. "host": The NAS IP

    4. "r" & "d": The query format of CoAP is "r=<r>&t=<t>"

    5. "port": The CoAP port.

    6. "resources": Information of resource, including the following:

      • description: QIoT resource description

      • datatype: QIoT resource data types

      • resourceid: QIoT resource identifiers

      • topic: CoAP’s path for sending and receiving. The URL format is "coap://<host>:<port>/<topic>?r=<r>&t=<t>"

      • resourcename: QIoT resource names.

      • resourcetypename: QIoT resource type names.

      • unit: QIoT resource units.

  • Type of Connection:


    1. method: PUT

    2. pathname: <topic>

    3. query: r=<r>&t=<t>

    4. payload: {"value" : <data>}


    1. method: GET

    2. pathname: <topic>

    3. query: r=<r>&t=<t>

    4. payload: {"value" : <data>}

Using the above example, you would get the following "URL" link:
" coap://"


    tttt 發表在 痞客邦 留言(0) 人氣()