Open nikolaof opened 5 years ago
Yes, I also met.
This is not an issue with bleno but with one of the used packages: https://github.com/noble/node-bluetooth-hci-socket/issues/84 https://github.com/noble/node-bluetooth-hci-socket/pull/91
An update to Node10 would be great!
I can confirm changing the node-bluetooth-hci-socket dependency works. Change node-bluetooth-hci-socket
to "@abandonware/bluetooth-hci-socket": "^0.5.3-5"
. And then update the require('bluetooth-hci-socket')
to require('@abandonware/bluetooth-hci-socket')
Got it building and advertising on my raspi 4, after having the exact error posted in the OP. Have not tested extensively yet.
Changing dependency: https://github.com/arthare/bleno/commit/596acd9f32f889b8757f66bde23e25f488644259 Changing requires: https://github.com/arthare/bleno/commit/ae0034ab86a309f0dca7d77b1fed95e988d4e0bf
I'm using @abandonware/bleno
with node.js 12.19
and so far everything works well.
I followed @arthare advices, I'm running it with NodeJs 15.5.0
like a charm, thank you.
Hi,
I'm trying to install the bleno module for node 10.15.0 using either a
package.json
file or just by running thenpm install bleno
I'm getting the following error:It seems that it's trying to use an old bluetooth-hci-socket version that using the deprercated
V8
macroWhile compiling it emmited this error:
Any idea? Maybe the package.json should be changed in order to use the
@abandonware/bluetooth-hci-socket
module.