Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Status / Demo #9

Closed
LukasBombach opened this issue Jul 4, 2019 · 1 comment
Closed

Status / Demo #9

LukasBombach opened this issue Jul 4, 2019 · 1 comment

Comments

@LukasBombach
Copy link

Hey, I managed to get this installed and start advertising, at least the console output says so. I explained how I did it here. I started advertising with this script:

const bleno = require("bleno-mac");

bleno.on("stateChange", function(state) {
  if (state === "poweredOn") {
    bleno.startAdvertising("DE1", ["a000"]);
  } else {
    bleno.stopAdvertising();
  }
});

bleno.on("accept", clientAddress => {
  console.log("Accepted connection to", clientAddress);
});

Unfortunately my device cannot be discovered. So I am wondering if I am doing something wrong or if the project is currently broken. Oh I am running macOS Mojave 10.14.5.

Can you tell me if this should work and maybe the project does not work on Mojave or if I am doing something wrong? Maybe as a proper GitHub issue and not a should-be-stack-overflow post, can you include a simple example in the project?

Thank you

@LukasBombach
Copy link
Author

I am sorry, I did you wrong. The problem is that I cannot discover my Mac via BLE from my Mac. I tried this with https://www.synapse.com/bluesee and could not find my own device, but they also have an IOS app, which I finds the device I created with bleno-mac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant