Thanks, this works. :-) Regarding where to put some info on this: It would be great to have a tutorial, using the Puck.js together with the web bluetooth API (not only with your wrapper class).
Now, I have some other questions regarding this:
Do you know if it's possible to connect multiple devices at once via Web Bluetooth?
Do you know if I can connect to devices automatically via Web Bluetooth? (Let's say: Remember a device and if it's reachable, Web Bluetooth should automatically connect to it)
Using the characteristicvaluechanged event, I should be able to get the real time data, every time the battery percentage changes, right?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi Gordon!
Thanks, this works. :-) Regarding where to put some info on this: It would be great to have a tutorial, using the Puck.js together with the web bluetooth API (not only with your wrapper class).
Now, I have some other questions regarding this: