Oh so you already have something similar for the puck.js
Yes, totally - for example: https://www.espruino.com/Web+Bluetooth
So something like this is totally valid to do right now on a Bluetooth device:
<html> <head> </head> <body> <script src="https://www.puck-js.com/puck.js"></script> <script> function ask() { var n = window.query("What's your name?"); Puck.write('NAME='+JSON.stringify(name)+';\n'); } </script> <button onclick="ask();">go()</button> </body> </html>
And with Web Serial and the new library it'll be the same, just with some name other than Puck.
Puck
So I could e.g. have page on the web that would easily work as a frontend to my espruino based smart watch
Yes, and you can do that right now :) You could also look at https://www.espruino.com/Web+Bluetooth+Dashboard
@Gordon started
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.
Yes, totally - for example: https://www.espruino.com/Web+Bluetooth
So something like this is totally valid to do right now on a Bluetooth device:
And with Web Serial and the new library it'll be the same, just with some name other than
Puck
.Yes, and you can do that right now :) You could also look at https://www.espruino.com/Web+Bluetooth+Dashboard