-
• #2
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.
-
• #3
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
-
• #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.
Following the advice here:https://www.espruino.com/BLE%20Advertising
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