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

# Publish Message

Request Method: POST

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

URL Parameter

Parameter Name Format Required Description
topic string yes publish message to specified topic, only support publishing messages with qos=0

http content

Ordinary binary data, string, json, etc. (**Maximum support 64k**)

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

Example of Request Header

POST http://api.heclouds.com/mqtt?topic=topic/test/01 HTTP/1.1

Example of Request Parameter

{"payload":"testmsg"}

Example of Return

{
    "errno":0,
    "error":"succ"
}

results matching ""

    No results matching ""