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

# Publish Message

Request Method: POST

URL: http://iot.zong.com.pk:8000/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://iot.zong.com.pk:8000/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 ""