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

Handling serial disconnect #2

Open
alexcroox opened this issue Dec 27, 2013 · 1 comment
Open

Handling serial disconnect #2

alexcroox opened this issue Dec 27, 2013 · 1 comment

Comments

@alexcroox
Copy link

I'm using this with a Bluetooth module and everything is working great. I'd like to be able to detect when the BT serial loses connection though so I can stop my robot from moving, is this possible?

@sworteu
Copy link

sworteu commented Dec 27, 2013

I Believe it's best to use a timer or some kind of timeout function.

There is no way to know if bluetooth has lost the connection other than
using system apis on a host computer.
If you do two-way-timeout it will be much better.

For example on your host computer software setup a timer for 500ms. and on
the arduino use milliseconds in a loop or so.
Then you might know it has lost connection.

2013/12/27 Alex Crooks [email protected]

I'm using this with a Bluetooth module and everything is working great.
I'd like to be able to detect when the BT serial looses connection though
so I can stop my robot from moving, is this possible?


Reply to this email directly or view it on GitHubhttps://github.com//issues/2
.

Met vriendelijke groet,
Derk Jochems

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