• Hello,
    I am trying to communicate with a Ble peripheral that need a password to be bounded.
    I used the BleScanner code to find the device without a single problem. Now I am trying to access to the device's characteristics.
    I tried to do the following :
    -NRF.scan -> returns BluetoothDevice.
    -NRF.connect(device.id) -> returns BluetoothRemoteGattServer (let's call it g as in examples).
    -g.startBonding() -> returns a resolved promise.
    -g.getPrimaryService("UUID")->generates an uncaught error : BLE error 0x11 (BUSY).
    I also tried without the bonding part, with the same result.

    I tried to add the 'passKeyRequest' handler in order to use sendPasskey function (after I scanned and after I used NRF.connect(device.id) ), but it didn't work : 'the callback function is never called (I put a console.log inside it).

    you can find attached a simplier version of the code I made.
    Best regards,
    Nicolas


    1 Attachment

About

Avatar for user132484 @user132484 started