noble / bleno

A Node.js module for implementing BLE (Bluetooth Low Energy) peripherals
MIT License
2.12k stars 447 forks source link

Just work still fail to pair #396

Open ghost opened 6 years ago

ghost commented 6 years ago

Hi sandeepmistry, I tried the Just Work setting in handlePairingRequest of smp.js this._pres = new Buffer([ SMP_PAIRING_RESPONSE, 0x03, // IO capability: NoInputNoOutput 0x00, // OOB data: Authentication data not present 0x01, // Authentication requirement: Bonding - No MITM 0x10, // Max encryption key size 0x00, // Initiator key distribution: 0x01 // Responder key distribution: EncKey ]); but the pair is alwasy failed, and the onAclStreamData received the code status as: code 1 code 3 code 5 which measn finally it failed, could you help to have a look? Why it failed even in just work, I also tried use passkey, but also nothing shown.