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

Single Master / Multi Slave issue #17

Open
ajinkyaw opened this issue Feb 21, 2019 · 2 comments
Open

Single Master / Multi Slave issue #17

ajinkyaw opened this issue Feb 21, 2019 · 2 comments

Comments

@ajinkyaw
Copy link

Hi.
I want to use multi slave and one master connection.
My slaves are sending data to master after every 3 seconds.
Please guide me to use this lib in that condition.

@majenkotech
Copy link
Contributor

That's actually more akin to multiple masters, and single slave. Multiple senders, and one receiver.

You have two options:

  1. Just send the data and hope it gets through, or
  2. Turn the system around and have the "master" request the data from each "slave" in turn.

Which you choose depends on the importance of the data. If you don't care if some data gets lost, but want it to be as light as possible, then option 1 could work. If you want it reliable, then you will have to use option 2. Personally I'd pick option 2 every time.

Simply have the master send a message to slave 1, saying "It's your turn". Slave 1 then sends its data. The master then sends the same message to slave 2, which then sends its data. Etc.

@ajinkyaw
Copy link
Author

@majenkotech 👍 Thanks for the guidance (like everytime).
Can you suggest any particular library for Arduino to use.

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