BT Radio Notification Callback not working on NRF Connect SDK v2.7.0

The Radio Notification Callback functionality found here is exactly what I am looking for.  However, when I try to include the associated header <bluetooth/radio_notification_cb.h> there is no such file.  I also checked <zephyr/bluetooth/radio_notifiaction_cb.h> but still no luck.  The associated example, found here seems to identify that as the only prerequsite to use this functionality but perhaps I am missing something else?  I don't see any related KCONFIG options mentioned in the docs.

System Info:

IDE: nRF Connect for VS Code

SDK: 2.7.0

Toolchain: 2.7.0

Any help would be appreciated!

Thank you,

Austin

  • Hello Austin,

    Can you please study the sample found in NCS\nrf\samples\bluetooth\radio_notification_cb

    Unfortunately, it is not present in NCS v2.7.0, but it is present in NCS v2.8.0, so perhaps you can consider migrating to 2.8.0.

    I don't see it looking a few versions back (at least not present in 2.4.0 -> 2.7.0), but the feature was present earlier, but it was taken out. However, due to popular demand, it was put back in, and there is now a sample for it in v2.8.0. So while it may work in 2.7.0, there is a sample that you can at least refer to in 2.8.0. You can see there how it is included, so you probably need "CONFIG_BT_RADIO_NOTIFICATION_CONN_CB=y" in your prj.conf, in addition to the implementation done in main.c and peripheral/central.c.

    Best regards,

    Edvin

Related