There must* be only one broker.
All clients (node-red is a client, your device is a client) talk to ONE broker
That is the definition of a broker ( A broker is an intermediary between clients )
This thread might help you get it.
* there can of course be more than one broker but for what you are trying to achieve, there should only be one broker