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 Reply
  • Hi Amanda, thanks for getting back to me. Yes, I would like the ability for a mobile app to send config files to a Matter:Light Switch (or similar) device, that device would be sitting/recognised by Apple Home or Google Home devices. Then the device (which would have 4 buttons on it) could be controlled via voice commands. Am I over ambitious?

    Thanks for posting the link, I'll take a look at it shortly.

    D.

Children
Related