stoprocent / bleno Goto Github PK
View Code? Open in Web Editor NEWThis project forked from abandonware/bleno
A Node.js module for implementing BLE (Bluetooth Low Energy) peripherals
License: MIT License
This project forked from abandonware/bleno
A Node.js module for implementing BLE (Bluetooth Low Energy) peripherals
License: MIT License
While running the examples, whenever I try to pair with my phone the program crashes with this error:
bleno - echo
on -> stateChange: poweredOn
on -> advertisingStart: success
/home/pi/Apps/blue/node_modules/@stoprocent/bleno/lib/hci-socket/crypto.js:60
const output = Buffer.alloc(input.length);
^
TypeError: Cannot read properties of undefined (reading 'length')
at swap (/home/pi/Apps/blue/node_modules/@stoprocent/bleno/lib/hci-socket/crypto.js:60:37)
at e (/home/pi/Apps/blue/node_modules/@stoprocent/bleno/lib/hci-socket/crypto.js:37:9)
at Object.c1 (/home/pi/Apps/blue/node_modules/@stoprocent/bleno/lib/hci-socket/crypto.js:22:9)
at Smp.handlePairingRandom (/home/pi/Apps/blue/node_modules/@stoprocent/bleno/lib/hci-socket/smp.js:127:14)
at Smp.onAclStreamData (/home/pi/Apps/blue/node_modules/@stoprocent/bleno/lib/hci-socket/smp.js:55:12)
at AclStream.emit (node:events:525:35)
at AclStream.push (/home/pi/Apps/blue/node_modules/@stoprocent/bleno/lib/hci-socket/acl-stream.js:20:12)
at BlenoBindings.onAclDataPkt (/home/pi/Apps/blue/node_modules/@stoprocent/bleno/lib/hci-socket/bindings.js:198:23)
at Hci.emit (node:events:513:28)
at Hci.onSocketData (/home/pi/Apps/blue/node_modules/@stoprocent/bleno/lib/hci-socket/hci.js:613:16)
Node.js v18.13.0
It appears that its receiving SMP_PAIRING_RANDOM
before SMP_PAIRING_CONFIRM
, so this._tk
doesn't have a value yet... Any clues?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.