請求方式:POST
URL: http://api.onenet.hk.chinamobile.com/mqtt
參數名稱 | 格式 | 是否必須 | 說明 |
---|---|---|---|
topic | string | 是 | 發佈消息到指定的topic,只支援發佈qos=0的消息 |
普通二進位數據、字串、json等(**最大支援64k**)
參數名稱 | 格式 | 說明 |
---|---|---|
errno | int | 調用錯誤碼,為0表示調用成功 |
error | string | 錯誤描述,為“succ”表示調用成功 |
P0ST http://api.onenet.hk.chinamobile.com/mqtt?topic=topic/test/01 HTTP/1.1
{"payload":"testmsg"}
{
"errno":0,
"error":"succ"
}