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

Feature suggestion: Automatically reconnect #35

Open
JasonBSteele opened this issue Jul 12, 2020 · 3 comments
Open

Feature suggestion: Automatically reconnect #35

JasonBSteele opened this issue Jul 12, 2020 · 3 comments

Comments

@JasonBSteele
Copy link

JasonBSteele commented Jul 12, 2020

Hi,

I am using a Nano BLE Sense device to listen for sounds, and then infer what they are. If the sound is other than background noise it sends a Notify to the central.

This all works fine, but the Nano device is prone to the occasional disconnection due to it's weak radio. Unfortunately this means I need to connect again, and this is currently done with an Inject. I guess I could monitor the status and send a connect message if it disconnects but I prefer it if the "config" node could reconnect automatically if a check box is checked.

Also if subscribed for events it would need to resubscribe.

@dbaba
Copy link
Collaborator

dbaba commented Jul 13, 2020

Interesting. Let me try it.

@JasonBSteele
Copy link
Author

I set up a Status listening node to connect when disconnected. This deals with the issue most of the time, however occasionally the status is stuck at disconnected or missing. In these cases I find it necessary to go back into the config node and untick the scanning checkbox, then tick it again. When I do this it immediately finds the device and then the status listener does the connection.

@dbaba
Copy link
Collaborator

dbaba commented Jul 15, 2020

I observed that while reproducing an issue. Scanning on/off commands seem to be required in some cases.

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