Trying to test the mqtt api from a raspberry pi using mosquitto_pub, but can’t get data to the server.
I have tested with mqtt.fx, and this works fine to create a data entry on a channel 0.
I’ve carefully put the same credentials into mosquitto_pub to send identical information, but no entry is created. I can get mosquitto_sub to connect to Cayenne to display the messages that mqtt.fx is sending.
mosquitto_pub -h “mqtt.mydevices.com” -p 1883 -u “userXXXX” -P “passXXX” -t “v1/YYYY/things/ZZZZ/data/0” -m “‘temp, c=23.5’”
(hidden my secrets)
the response is:
Client mosqpub|9221-raspberryp sending CONNECT
Client mosqpub|9221-raspberryp received CONNACK (0)
Client mosqpub|9221-raspberryp sending PUBLISH (d0, q0, r1, m1, ‘v1/YYYY/things/ZZZZ/data/0’, … (14 bytes))
Client mosqpub|9221-raspberryp sending DISCONNECT
suggestions welcome please.