What I am trying to do is publish a message from a device in one registry to a device in another registry.
What I found out is that you can only publish to topics in the registry your device is in and if you try to publish to a topic in another registry you get a EOFException
and you get disconnected from the MQTT server.
The flow I was trying to go for is I have a registry
of mobile devices (phones) that have their own topics to do things but they also need to communicate to a hub registry
that communicates with IoT devices (gets/updates device information) which also have their own IoT registry
As I said I can publish messages to topics in my registry without error but as soon as I try to do it outside my registry I get an error.
Is there no way to have inter-registry communication?
What is a "standard" way to communicate between devices through different topics if you cant do cross registry?