Advertising example not working on Mac OS X

Posted on
  • Following the advice here:https://www.espruino.com/BLE%20Advertisi­ng

    I deploy the logic to the puck.

    I disconnect.

    I create the file advertising_nodejs.js file and run it with node.

    The Starting scan... and Scanning started... messages appear in the node terminal.

    I click the puck button.

    Nothing is displayed -- no advertisement data appears as expected.

    Running on MacBook Pro with the latest Mojave release installed.

    Is this a supported configuration?

    Jim

  • Looks like noble for node.js is broken for Mac OS Mojave. There are open issues at the GitHub project. But there is another project called noble-mac that can be used as a drop-in replacement for noble.

    See https://github.com/Timeular/noble-mac

    Using this, I was able to get the advertising sample code to work for the puck and the Mac running Mojave.

  • Thanks for this - I'll add a note on that to the page.

    We're talking about this issue on Noble? https://github.com/noble/noble/issues/83­4

  • Yes, that's the issue. I am running Mojave and discovering peripherals was not working with noble but it does seem to work with noble-mac.

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

Advertising example not working on Mac OS X

Posted by Avatar for jjs357 @jjs357

Actions