I created two devices to simulate a pub-sub scenario with mosquitto_pub
and mosquitto_sub
commands. The dashboard shows connected status for the terminal running mosquitto_sub
. The dashboard also shows the latest message sent by the terminal running mosquitto_pub
. And, yet the terminal running the subscription shows nothing.
What am I missing?
Subscription
mosquitto_sub -h orgId.messaging.internetofthings.ibmcloud.com -p 8883 -i d:orgId:dType:device01 -u use-token-auth -P token --cafile messaging.pem -t iot-2/evt/data/fmt/json
Publisher
mosquitto_pub -h orgId.messaging.internetofthings.ibmcloud.com -p 8883 -i d:orgId:dType:device02 -u use-token-auth -P token --cafile messaging.pem -t iot-2/evt/data/fmt/json -f some.json