question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Advertising not starting in macos Mojave

See original GitHub issue

Using bleno as sandalone module to mock a peripheral

Steps of running:

  • clone the repo
  • Navigate inside bleno/examples/echo
  • node main.js

Console shows on -> stateChange: poweredOn but on -> advertisingStart: success not coming.

Debug log

bleno - echo
  bleno platform darwin +0ms
  bleno addressChange 8c:85:90:64:f0:b4 +3ms
  highsierra-bindings sendCBMsg: 1, {
  highsierra-bindings   "kCBMsgArgName": "node-1538851048987",
  highsierra-bindings   "kCBMsgArgOptions": {
  highsierra-bindings     "kCBInitOptionShowPowerAlert": 1
  highsierra-bindings   },
  highsierra-bindings   "kCBMsgArgType": 1
  highsierra-bindings } +0ms
  highsierra-bindings xpcEvent: {
  highsierra-bindings   "kCBMsgId": 4,
  highsierra-bindings   "kCBMsgArgs": {
  highsierra-bindings     "kCBMsgArgState": 5
  highsierra-bindings   }
  highsierra-bindings } +1ms
  highsierra-bindings state change poweredOn +0ms
  bleno stateChange poweredOn +2ms
on -> stateChange: poweredOn
startAdv { kCBAdvDataLocalName: 'echo',
  kCBAdvDataServiceUUIDs: [ <Buffer ec 00> ] }
  highsierra-bindings sendCBMsg: 16, {
  highsierra-bindings   "kCBAdvDataLocalName": "echo",
  highsierra-bindings   "kCBAdvDataServiceUUIDs": [
  highsierra-bindings     {
  highsierra-bindings       "type": "Buffer",
  highsierra-bindings       "data": [
  highsierra-bindings         236,
  highsierra-bindings         0
  highsierra-bindings       ]
  highsierra-bindings     }
  highsierra-bindings   ]
  highsierra-bindings } +3ms

Environment MacOS Mojave version 10.14

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:6
  • Comments:10

github_iconTop GitHub Comments

3reactions
charliegerardcommented, Jul 11, 2019

Thanks @LukasBombach for your version!! It works for me, but only if I switch my version of Python back to the default pre-installed one (v2.7)

I forgot node-gyp doesn’t support Python 3, so it took me a while to figure out why I was still getting errors when running npm install, so just in case someone is having an issue, make sure to check you’re using Python 2.7! (python --version) 😃

2reactions
LukasBombachcommented, Oct 16, 2019

Of couse. For now I want to finish Sblendid first, to improve what Noble is lacking, I don’t think I will put my hands on Bleno any time soon though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

stuck on startAdvertising, MacOS 10.14 #404 - noble/bleno
I tried to manually apply the #415 on my noble/bleno but the advertising is not starting when I run the echo example.
Read more >
How to Fix Apps That Don't Work in macOS Mojave
First, open System Preferences. · Click on Security & Privacy. · Click on the far-right tab called "Privacy." · On the left sidebar,...
Read more >
Allow or block pop-ups in Safari on Mac - Apple Support
Other websites might fill your screen with pop-up ads. You can allow or block pop-ups on individual websites or all websites. If you're...
Read more >
System Apps not opening in Mojave - Apple Stack Exchange
I recently upgraded to macOS BigSur, but after that my mac started to lag. By lag I mean the transitions while switching between...
Read more >
Fixes for all known macOS Mojave problems - Setapp
Make sure you've completed a pre-installation backup. · If the download doesn't start, doesn't finish, or crashes along the way—restart your Mac.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found