I have a related question. I have an MQTT device (Arduino using CayenneMQTT API, call it device0) that successfully publishes data. I can also trigger an LED on the device using the dashboard. Everything works as expected with device0 using the dashboard.
I have another device (MQTT client application, MQTT.fx app for example, call it device1). I can publish and subscribe using the app (following the example at https://github.com/myDevicesIoT/cayenne-docs/blob/master/docs/MQTTAPIS.md#cayenne-mqtt-api-manually-publishing-subscribing). Data shows up in the dashboard for this device and everything works as expected with device1.
The problem arises when I want to subscribe from device1 to topics on device0 using
v1/username/things/clientID/data/channel, where I substitute:
clientID= client ID of device0
channel=0 (the channel exists in the dashboard).
I never receive any data on device1. Interestingly enough, MQTT.fx won’t even let me subscribe to the topic. It gives an error (Error subscribing to topic: de.jensd.mqttfx.entities.Topic@73662b1a
org.eclipse.paho.client.mqttv3.MqttException: MqttException … with lots of additional lines of debug info)
Any assistance as to whether this type of connection is possible would be greatly appreciated. Thanks.