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

Initializing more than 253 devices per bridge #14

Open
Paula-Kli opened this issue Dec 21, 2021 · 1 comment
Open

Initializing more than 253 devices per bridge #14

Paula-Kli opened this issue Dec 21, 2021 · 1 comment

Comments

@Paula-Kli
Copy link
Collaborator

What should happen if the bridge detects that the cloud gives a device ID greater than 253? (254 and 255 are reserved for the protocol)

@Sbef98
Copy link
Owner

Sbef98 commented Feb 7, 2022

Tbh, that might be a problem. Eventually, we may add a sub routine that "pings" all the devices and checks if they're alive, a sort of garbage collector.
When we find that a with an earlier id does not exist, the bridge might tell it to the cloud which will note it down among the available ids and use these ids to initialize future devices.
IF we acutally did hit the maximum because we connected 253 devices to the bridge, the other option may actually ignoring the initialization request.
Eventually, if we see this as a possibility, we might move to 16 bit protocol. I mean, it's not that terribly hard to be implemented, not on arduino at least aka nowhere!

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