Hi folks,
I have node red applications running on two separate systems (PC). I wish to push /move data from one application to another.
I tried by hooking these computers on to a VPN (zerotier) and using MQTT broker (Mosquitto) but its not working..
Any alternatives ?
Please assist
Why?
In what sense?
If the two PCs are not on the same network, there are plenty of cloud based MQTT brokers.
I wanted to use Mosquitto broker to publish from one application and subscribe with the other and for that to work I needed to get them on a VPN (was not considering MQTT on cloud owing to involvement of cost).
I am using the mqtt nodes to publish but not receiving any data at the subscribed node.
Then you have a configuration issue. There is no fundamental reason this shouldn't work.
Have you tried the Mosquitto client tools to manually subscribe on the remote PC and submit on the local one? Does that work? If not, you likely have some kind of firewall issue on the PC's.
You could also, by the way, run Mosquitto on BOTH PC's and configure the brokers to sync topic trees.
I have successfully used Node-red and an MQTT broker on a Raspberry Pi to exchange data with another Pi when both are connected over Zerotier.