OneNET IoT Platform Platform Introduction Introduction Manual Guidline for Device Development Guideline for Application Development
API
API Usage API List SDK MQTT LwM2M EDP Modbus TCP
HTTP Push MQ
Other Service Common Question

# Inquire Topic Subscribed by Device

Request Method: GET

URL: http://api.heclouds.com/mqtt/device_topic/device_id

device_id: need to be replaced with device ID

Return Parameter

Parameter Name Format Description
errno int code for call error , 0 indicates call is successful
error string error description, "succ" indicates call is successful
data array-string topic list

Example of Request Header

GET http://api.heclouds.com/mqtt/device_topic/39587277 HTTP/1.1

Example of Return

{
    "errno": 0,
    "data": ["topic/test/01", "topic/test/02"],
    "error": "succ"
}

results matching ""

    No results matching ""