EVENT_CHANNEL_CLOSED ?

Dear Members,

How can I scan continously if I loss the sensor,

I have made at this function :

static void ant_evt_handler(ant_evt_t * p_ant_evt, void * p_context)

case EVENT_CHANNEL_CLOSED:
									  NRF_LOG_INFO("EVENT_CHANNEL_CLOSED...\r\n");
								    NRF_LOG_INFO("BSP_INDICATE_SCANNING...\r\n");//31Mar22 Rixtronix LAB
                    
								     err_code = bsp_indication_set(BSP_INDICATE_SCANNING);
					
								    nrf_pwr_mgmt_feed(); //Function for indicating activity.
								    
								
                    break;

but it's not scanning when it loss the sensor ,

Any clues ?

Kind regards,

Rixtronix

Parents
  • Hi

    What SDK version and SoftDevice version are you using specifically? At least in nRF5_SDK v17.1.0 ant_search_init() is defined in ant_search_config.c/.h located in ...\SDK_FOLDER\components\ant\ant_search_config\

    I would not recommend making the function yourself as it uses some ANT and SoftDevice specific functions.

    Best regards,

    Simon

Reply
  • Hi

    What SDK version and SoftDevice version are you using specifically? At least in nRF5_SDK v17.1.0 ant_search_init() is defined in ant_search_config.c/.h located in ...\SDK_FOLDER\components\ant\ant_search_config\

    I would not recommend making the function yourself as it uses some ANT and SoftDevice specific functions.

    Best regards,

    Simon

Children
Related