Request format: POST
URL: http://api.onenet.hk.chinamobile.com/mqtt
Name | Format | Required or not | Description |
---|---|---|---|
topic | string | Yes | Publish messages to the specified topic, supporting qos=0 messages only |
Ordinary binary data, string, json, etc. (**max. 64k**)
Name | Format | Description |
---|---|---|
errno | int | Call error code, where 0 means success. |
error | string | Error description. “succ” means the call is successful. |
POST http://api.onenet.hk.chinamobile.com/mqtt?topic=topic/test/01 HTTP/1.1
{"payload":"testmsg"}
{
"errno":0,
"error":"succ"
}