You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From a friend i got an ESP sketch to get P1 readings form an powermeter and send them to an Mosquitto MQTT broker.
It works well.
I try to change the sketch so i can connect to two Mosquitto MQTT brokers at the same time, but I endup in a connection loop when using the client1.loop(); and client2.loop() statements.
Does this library support using two clients simultaniously?
The text was updated successfully, but these errors were encountered:
As a work around, if you not aware, you can setup one of your brokers in bridge mode so that you can publish the information to the second broker. http://mosquitto.org/man/mosquitto-conf-5.html
I am aware of that solution, but I got two seperate MQTT brokers and two seperate homedomotica systems for redundancy and testing purposes. I want to keep my setup this way.
From a friend i got an ESP sketch to get P1 readings form an powermeter and send them to an Mosquitto MQTT broker.
It works well.
I try to change the sketch so i can connect to two Mosquitto MQTT brokers at the same time, but I endup in a connection loop when using the client1.loop(); and client2.loop() statements.
Does this library support using two clients simultaniously?
The text was updated successfully, but these errors were encountered: