蓝色混合 IoT “主题无效”

使用 Bluemix。使用 NodeMCU MQTT Lua。收到以下有关主题无效的消息。如何进行调试?


来自 108.67.152.187 的连接已关闭。[主题无效。] [5] 分钟内出现了 [6] 次

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


NodeMCU Lua 代码:

t1=123 -- 任意值

topic = "iotsensor.fake"

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

function(conn)     -- 打印发布数据的确认信息     print("Sent message #"..count.." data:"..t1) end)

点赞
用户4454969
用户4454969

对于 IoT Foundation: 发布事件主题 iot-2/evt/event_id/fmt/format_string 订阅命令主题 iot-2/cmd/command_id/fmt/format_string 更多详细信息,请参阅文档

2015-12-07 13:13:09