0

我正在用 COSM 测试 MQTT。

要发布数据,我使用以下命令:

$ mosquitto_pub -h api.cosm.com -u <COSM_API_KEY> -t /v2/feeds/96951.csv -m "temp_sensor,21"

要订阅,我使用以下命令:

$ mosquitto_sub -h api.cosm.com -u <COSM_API_KEY> -t /v2/feeds/96951/datastreams/temp_sensor.csv

我希望在订阅方面,只要更新提要或数据流,它就应该获得更新状态。但我只在订阅后立即获得设备的当前状态。

我错过了什么吗?

4

1 回答 1

2

I think this was fixed on the Cosm end, so the mosquitto_sub example you gave above is working for me now.

于 2013-04-18T15:30:59.793 回答