NRF.on('connect', function(addr) not called ? #5451
Unanswered
espruino-discuss2
asked this question in
Bangle.js
Replies: 1 comment
-
Posted at 2022-12-09 by @gfwilliams Can you try showing the message some other way? Maybe draw it to the LCD? It's entirely likely that the Posted at 2022-12-10 by rchateauneu Yes, many thanks, well done: This program displays a red square when Bluetooth connects, and a blue square on disconnection. This works as expected, good.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Posted at 2022-12-08 by rchateauneu
The following program logs "connect" and "disconnect" BLE events, while writing a dummy message in a loop.
This is tested with a Bangle2 and an Android phone ("BLE Scanner" and also "nRF Connect").
The "disconnect" event is properly detected, but not the "connect" one. However, the connection seems to be effective because "BLE Scanner" is able to read strings from the Bangle2.
Also, when connected, the writing loop is not called. Why, please ?
Beta Was this translation helpful? Give feedback.
All reactions