How to interface two RaspberryPis over MQTT with Cayenne

this post is with esp8266 Multiple MQTT Clients on 8266
well, i am not tried on raspberry pi, but if you use node-red then you can subscriber to other device topic.