Send data from raspberry and read them from PC [message #1807720] |
Thu, 06 June 2019 12:00  |
Eclipse User |
|
|
|
Hello,
I have developed two bundles that implements a Publisher and a Subscriber.
The Publisher is installed on a Raspberry Pi2, the Subscriber is on my PC.
The publisher should send messages to my MQTT cloud, and the Subscriber should receive them. They both have the same account-name, the same application ID, the same application topic. They only differ from their client ID.
When I start the two bundles both from my pc the result is what I want (the publisher send some data, and in my console I can read the received data thanks to the subscriber). The problem is that when I install the Publisher on the raspberry the data are sent to the cloud, but the Subscriber is not listening on the correct topic (because of the different client ID). If i choose the same client ID for both devices the cloud keep connecting one and disconnecting the other device.
How can I do?
Thanks for help,
Alessandro
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.24699 seconds