Local development (localhost)

Posted on
  • Hi!

    I've been looking for this kind of smart watch for ages and was super stoked to learn about bangle.js and ordered one right away!

    So..

    I'm curious as to how this watch connects with bluetooth. Is there is a way to make a local connection without going through the official app store?

    Found a post that kind of touched the subject, but I'm looking for something even more basic. How to do this from scratch.
    http://forum.espruino.com/conversations/348528/#comment15332221

    I'm an experience js/node developer, but this wasn't clear to me while reading all the getting started stuff.

    Cheers! :)

  • @fractalf The watch supports bluetooth LE, you can make a connection without going to the official app store.

    I'm not sure what you exactly want to do but all code is public.
    You can clone the app store on github and use your own modified copy.
    Or you could even run your own web server with a copy of the app store.

    But if you want more direct communcation between e.g. phone and watch that is also possible.
    In that case you might want to have a look at gadgetbridge but there are undoubtedly other apps that provide functionality like this.

  • Web Bluetooth (from the browser) is definitely the easiest way to get started. Something like https://www.espruino.com/Bangle.js+Data+Streaming might give you some useful info there.

    But to connect from Node.js this is probably most helpful: https://www.espruino.com/Interfacing#bluetooth-le

    Basically Bangle.js puts its REPL on Bluetooth LE - once you can connect and send/receive characters you're sorted. You just send the JS code you want it to execute.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Local development (localhost)

Posted by Avatar for fractalf @fractalf

Actions