notjosh / bleno-mac

Bleno MacOS bindings using the official CoreBluetooth API
MIT License
23 stars 24 forks source link

does this module support startAdvertising? #8

Open asinning opened 5 years ago

asinning commented 5 years ago

I'm trying this fork because the sandeepmistry version never starts advertising. I was hoping this version would work.

I am running Mojave.

It seems to run without errors. I'm not sure I installed it correctly.

npm install blen-mac didn't work.

So, I: 1) downloaded the zip, unzipped it into my node_modeles and named the folder bleno-mac 2) got an error 3) cd into bleno-mac and ran npm install which seemed to install successfully

when running, the poweredOn event occurs, after which I'm called startAdvertising, but the advertisingStart never occurs.

andrewwalters commented 5 years ago

Advertising does work, though you need to have this branch of bleno installed (in addition to bleno-mac): https://github.com/notjosh/bleno/tree/inject-bindings

See https://github.com/noble/bleno/pull/415 and https://github.com/noble/bleno/issues/404 for details.