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

Support mailbox ID definition at runtime #34

Open
denis-stepanov opened this issue Jan 31, 2023 · 1 comment
Open

Support mailbox ID definition at runtime #34

denis-stepanov opened this issue Jan 31, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@denis-stepanov
Copy link
Owner

Currently mailbox ID is compiled in on the sender side. The idea would be for a sender to provide some unique ID instead (probably derived from ESP MAC) and then allow remapping this on the receiver side to an ID=1,2 etc.

To get a reasonably unique ID one would likely need to modify the protocol to send a long string, which would not only be incompatible change, but could easily double the packet size. So the feature to be taken with caution.

@denis-stepanov denis-stepanov added the enhancement New feature or request label Jan 31, 2023
@denis-stepanov
Copy link
Owner Author

Another option would be to use a separate sketch to ask the ID from the user and write it to EEPROM. The sketch would need to be run once after module assembly. This would not require modification of the protocol. In absence of configuration a digit from ESP MAC could be taken, which would give some - poor, but not zero - probability to distinguish the units by default. The sketch could be potentially combined with the sketch used for battery calibration (see feature #47).

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

No branches or pull requests

1 participant