多協議接入 產品介紹 快速入門 用戶指南 開發指南
EDP TCP透傳 MQTT Modbus HTTP
常見問題

發佈消息

請求方式:POST

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

URL參數

參數名稱 格式 是否必須 說明
topic string 發佈消息到指定的topic,只支援發佈qos=0的消息

http內容

普通二進位數據、字串、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"
}

个搜索结果,搜索内容 “

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