Following the advice here:https://www.espruino.com/BLE%20Advertising
I deploy the logic to the puck.
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?
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.
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/834
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.
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem