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

Multiple connections #66

Closed
martinvarbanov opened this issue May 9, 2017 · 4 comments
Closed

Multiple connections #66

martinvarbanov opened this issue May 9, 2017 · 4 comments

Comments

@martinvarbanov
Copy link

Hello,

Long story short, I'm trying to automize my program to make multiple connections to a Mosquitto brocker, without having to change the code every time I have to make a new connection. So far I've added 3 more connections from a single NodeMCU-ESP8266 with adding a PubSubClient client(espClient) and a reconnect() with just changing the name (client). My question is this: Is it possible to add some sort of counter (client counter), so when an event occurs, it to make a new connection?

@256dpi
Copy link
Owner

256dpi commented May 12, 2017

When I understood your question properly you are asking if it is possible to define multiple clients within the same Arduino sketch?

@martinvarbanov
Copy link
Author

Yes and is it possible to automize the process of defining multiple clients within the same Arduino sketch?

@256dpi
Copy link
Owner

256dpi commented May 15, 2017

I will add this to the V2 milestone.

@256dpi 256dpi added this to the v2 milestone May 15, 2017
@256dpi
Copy link
Owner

256dpi commented Jun 28, 2017

V2 (#59) will properly allow multiple clients.

@256dpi 256dpi closed this as completed Jun 28, 2017
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