简体   繁体   中英

COSM MQTT subscribe does not receive update status whenever the feed or datastream is updated

I'm testing the MQTT with COSM.

To publish data, I use below command:

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

To subscribe, I use below command:

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

I expect in subscribe side, it should get the update status whenever the feed or datastream is updated. But I only get the current state of the device immediately upon subscription.

Did I miss anything?

我认为这是固定在Cosm端,所以你上面给出的mosquitto_sub示例现在正在为我工​​作。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM