首页 文章

Bluemix物联网“主题无效”

提问于
浏览
1

使用Bluemix . 使用NodeMCU MQTT Lua . 获取有关主题的以下消息无效 . 怎么调试?


封闭连接从108.67.152.187 . [该主题无效 . ] [6]次在最后[5]分钟

令牌验证成功:ClientID ='myClientID'


NodeMCU Lua代码:

t1 = 123 - 任意值

topic =“iotsensor.fake”

m:publish(topic,'{“d”:{“data”:'.. t1 ..'}}',0,0,

function(conn) - 打印确认发布的数据print(“发送消息#”.. count ..“data:”.. t1)结束)

1 回答

  • 0

    对于物联网基金会:
    发布事件主题iot-2 / evt / event_id / fmt / format_string

    订阅命令主题iot-2 / cmd / command_id / fmt / format_string

    有关详细信息,请参阅documentation .

相关问题