you should create a separate version for each of the nodes and change line36 of the pastebin file with a unique name. example node1 node2 ...
PubSubClient client(espClient);
to something like
PubSubClient client(espClientNode1);
my guess is that mqtt is confused with two nodes of the same name
]]>I found that this won't work if both boards are online, they are reconnecting every sec. Due to this issue I was not able to control them together.
If the only one board is online I can control it wihtout any issues.
I have used example code from PubSubClient.h and my code example is here.
Can anybody tell me what is wrong with code?
thanks
]]>