• Ok, yeah - not having a GUI is going to make life more difficult! Do you have an Android phone you could use for the App Uploads?

    To actually upload apps from the CLI I'd recommend the 'apploader.js' file in BangleApps rather that EspruinoTools: https://github.com/espruino/BangleApps/b­lob/master/bin/apploader.js

    It's quite a bit simpler so could be easier to figure out what's wrong (and it automatically uploads the relevant files for each app). EspruinoTools is really if you're planning to do app development.

    You could also take a look at this example code for Noble. If you can get that working, everything else should work: https://www.espruino.com/Interfacing#nod­e-js-javascript

    I think first step would be whether you get a poweredOn event from just this code:

    const noble = require('@abandonware/noble');
    noble.on('stateChange', state => {
      if (state === 'poweredOn') {
        console.log("Success!");
      }
    });
    

    My guess would be that maybe Noble isn't finding your bluetooth radio. There's a 'whitelist' in bluetooth-hci-socket (which Noble uses) and it's possible your Bluetooth radio isn't in there:

    https://github.com/abandonware/node-blue­tooth-hci-socket/blob/master/lib/usb.js#­L14

    It's entirely possibly that just editing that file (in node_modules/node-bluetooth-hci-socket) with your device's USB IDs will make it work.

About

Avatar for Gordon @Gordon started