This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ble_radio_notification_init invoke failed

We use SDK12.10 Main.c (d:\nordic\5142xx\software\org-sdk12.1\nrf5_sdk_12.1.0_0d23e2a\examples\ble_central_and_peripheral\experimental\ble_app_hrs_rscs_relay.

My question: After add follow code, the program don't run, why don't run?

void radio_hand_event(bool event_active)
{
  static uint16_t count = 0;

 if ( m_conn_handle != BLE_CONN_HANDLE_INVALID )
 {

 }else
 {
   advertising_init();

   NRF_LOG_INFO("\r\n radio_hand_event count:%d\r\n", ++count);

 }

}

int main function add follow code:

uint32_t error_code = ble_radio_notification_init(NRF_RADIO_PRIORITY_NORMAL, NRF_RADIO_NOTIFICATION_DISTANCE_5500US, radio_hand_event);
NRF_LOG_INFO("ble_radio_notification_init err:%d\r\n", error_code);
Related