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

Need automatic recovery of Arduino sensors #5

Open
mikebotts opened this issue Nov 21, 2017 · 0 comments
Open

Need automatic recovery of Arduino sensors #5

mikebotts opened this issue Nov 21, 2017 · 0 comments

Comments

@mikebotts
Copy link
Member

mikebotts commented Nov 21, 2017

If any Arduino sensors lose connection to their OSH node, they currently have to be phyiscally restarted even after the hub is re-established. We need for the Arduino to auto-recover after a disconnect. Apparently in the Arduino library the sensor driver shuts down the sensor when it receives a negative response when trying to push a observation result to the hub. Perhaps we can instead ignore the negative response and keep sending new data values. That way, when the server recovers, the sensors will still be sending real-time data, resulting in automatic recovery.

This issue is based on experience from Tim Haynie after his server crashes, but it should also help with temporary mis-connects between an Arduino sensor and its hub.

extension of #4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant