Skip to content

force digital or analog message when enabling digital port or analog pin reporting #157

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

Merged
merged 1 commit into from
Oct 26, 2014

Conversation

soundanalogous
Copy link
Member

This change reports the digital port value upon the client enabling a digital port and it reports the analog pin value upon the client enabling that analog pin for reporting. This is a feature that has been requested to better support non-serial based connections such as ethernet, wi-fi and bluetooth where it's possible the connection may be broken and reestablished. If a client library reenables analog pins and digital pins upon reestablishing a connection, then with this change the respective values will be reported so the client is updated with the current state of the pins. Care may be needed in the client library however to ensure that there are no false triggers due to the reported port and pin values.

This feature has been used in ConfigurableFirmata for almost a year with no issues reported.

soundanalogous added a commit that referenced this pull request Oct 26, 2014
force digital or analog message when enabling digital port or analog pin reporting
@soundanalogous soundanalogous merged commit 0f6c3fc into dev Oct 26, 2014
@soundanalogous soundanalogous deleted the reporting branch October 26, 2014 19:34
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

Successfully merging this pull request may close these issues.

1 participant