Multiprotocol Access Product Introduction QuickStart User Guide Development Guide
EDP TCP transparent transmission MQTT Modbus HTTP
FAQ

Publish messages

Request format: POST

URL: http://api.onenet.hk.chinamobile.com/mqtt

URL Parameters

Name Format Required or not Description
topic string Yes Publish messages to the specified topic, supporting qos=0 messages only

http content

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

Return parameter

Name Format Description
errno int Call error code, where 0 means success.
error string Error description. “succ” means the call is successful.

Example of request header

POST http://api.onenet.hk.chinamobile.com/mqtt?topic=topic/test/01 HTTP/1.1

Request parameter example

{"payload":"testmsg"}

Return example

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

个搜索结果,搜索内容 “

    0 个搜索结果,搜索内容 “