How to do BLE characteristic.Writevalue () asynchronously ? #7850
Unanswered
BangleBeginner
asked this question in
Bangle.js
Replies: 1 comment
-
What you're doing looks kind of ok, it's just that you're not waiting for the connection.
|
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
Uh oh!
There was an error while loading. Please reload this page.
-
My set up is Banglejs as BLE host and HM-10 as peripheral.
The Banglejs watch has a main task to perform, and occasionally
I would like the host to write a few bytes to HM-10 via peripheral 's service/characteristics.
I follow an example in the espruino reference but struggle to understand
the concept ...... After the BLE connection is established , how to use the
"characteristic" to transmit a few bytes ?
I have included my test javascript for your comments. Thank you
for any help/pointers in advance.
score2.txt
Beta Was this translation helpful? Give feedback.
All reactions