• 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.

    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+D­ashboard

About

Avatar for Gordon @Gordon started