GithubHelp home page GithubHelp logo

stoprocent / bleno Goto Github PK

View Code? Open in Web Editor NEW

This project forked from abandonware/bleno

0.0 0.0 0.0 865 KB

A Node.js module for implementing BLE (Bluetooth Low Energy) peripherals

License: MIT License

JavaScript 67.09% C++ 1.58% Python 0.79% Objective-C 4.93% Objective-C++ 25.60%

bleno's People

Contributors

apollon77 avatar beaufortfrancois avatar bradfol avatar ceckerle avatar cheesebaron avatar derhuerst avatar dragom avatar gfwilliams avatar guimier avatar hashok avatar jacobrosenthal avatar jason-cooke avatar jonathanwiesel avatar leahjessie avatar malikolivier avatar mnkhouri avatar mploch-sonavation avatar petersaints avatar pfafman avatar programmarchy avatar ptx2 avatar raspelikan avatar robertchiras avatar rzr avatar sandeepmistry avatar spinogrizz avatar stoprocent avatar suppsandrob avatar valpackett avatar vdharmon avatar

bleno's Issues

Crash after start paring

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.