• As the title says, it's Windows 10.
    Version 22H2, to be precise.

    Espruino Command-line Tool 0.1.46

    I like to access my Bangle.js 2, but I thought this is some generic problem. I don't know what the COM-ports actually are on my system.

    I've already reinstalled the cli and still get the error. I also assume that no bluetooth modules are installed, since AppData\Roaming\npm\node_modules\espruinĀ­o\node_modules\ does not contain folders winnus or noble, and the @abandonware subfolder is empty. The npm install espruino command, however, did not show any errors.

    By the way, while looking at the code where the noble error comes from, I discovered serial_noble.js lines 58ff

    function startNoble() {
        try {
          process.on('uncaughtException', nobleExceptionHandler);
          try {
            noble = require('noble');
          } catch (e) {
            noble = require('@abandonware/noble');
          }
        } catch (e) { ... }
    

    where the exception from require('noble') is swallowed, which (at least in my case) is the root problem. I suggest adding some log message that noble could not be loaded and @abandonware/noble is tried instead.

About

Avatar for neshanjo2 @neshanjo2 started