Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more than one Nodemcu clients can't able to get published message at a time #79

Open
Rajeshtechgeek opened this issue Apr 2, 2017 · 1 comment

Comments

@Rajeshtechgeek
Copy link

i used this library in my two Node mcu's. Both Node mcu subscribes to the same topic.But when i publish a message to that topic, only one Node mcu can able to receive at a time.I need to publish message again so that My second node mcu able to get the message.but my windows pc MQTT Lens receiving all the messsages.what will be the issue?

@Urs-Eppenberger
Copy link

MQTT uses a client ID to distinguish between different clients.
Check the following command:
mqttClient.connect(clientID)
If you use the same value of clientID on both Node MCU boards, then only one is working, the other one gets the connection reset.

I'm not sure if this is the problem, but I stumbled over this myself. So it was worth a shot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants