Adding Bluetooth pairing and characteristics to light_switch app on nRF52840 using ConnectivityMgr()?

I'm able to build and deploy the light_switch app to the nRF52840 board. 

I'd like to add the ability for a mobile app to connect to the nRF52840's Matter::light_switch sample and if I understand the docs correctly I need to be able to handle pairing, subscribing and broadcasting of certain characteristic using Bluetooth.

I can see the nRF52840 on my phone, under BT devices, but any attempt to pair (right now) fails.

I notice the 2.2.0 SDK has a `ConnectivityMgr()` class which in turn gives me access to the BLE layer via 

`ConnectivityMgr().GetBleLayer()`.
But I'm unable to find any documentation on if I can use this BleLayer to set up the required functionality mentioned above?
Thanks.
D.
Parents
  • When I activate BLE I can see in the TTY output that 

    `BLE Advertising Started`

    But when I connect to it via the nRF Connect for Desktop Bluetooth Low Energy GUI, I get...

    16:18:40.764
    Selected device with s/n 000683476912
    16:18:40.784
    Error while setting up device 000683476912: Error: Error Resource temporarily unavailable Cannot lock port
    16:18:40.786
    Device closed.
Reply
  • When I activate BLE I can see in the TTY output that 

    `BLE Advertising Started`

    But when I connect to it via the nRF Connect for Desktop Bluetooth Low Energy GUI, I get...

    16:18:40.764
    Selected device with s/n 000683476912
    16:18:40.784
    Error while setting up device 000683476912: Error: Error Resource temporarily unavailable Cannot lock port
    16:18:40.786
    Device closed.
Children
No Data
Related