Check if Puck is connected with MDBT (Bluetooth) #3670
Replies: 3 comments
-
Posted at 2021-02-23 by @gfwilliams
How long did you leave it? There's a bit of a timeout in the connection to allow for radio interference, so it won't log it as soon as the connection is gone - but it should after maybe 10 seconds. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-02-23 by psc1988 Let me check. Thanks for the info. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-02-23 by psc1988 Cool, that works. Around 30 Seconds but thats ok for me! Thanks Gordon! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2021-02-23 by psc1988
Hi Gordon,
how I can implement the NRF.on("connect") service to check, if there is a bluetooth device connected or not.
I just want to send signals from Puck to MDBT when they are connected.
I worked with a variable "connected" and set it to true or false.
I have to setWatch functions with the Puck button for rising and falling. When I connect and disconnect it via the Puck button all is working.
But now I removed the battery from the MDBT and the Puck haven´t detected it as disconnected.
Best regards
Beta Was this translation helpful? Give feedback.
All reactions