First message from ANT sensor ?

Dear Members,

Can we do this to capture the first message from ANT transmitter ?

void ant_bsc_disp_evt_handler(ant_evt_t * p_ant_evt, void * p_context)
{
    ant_bsc_profile_t * p_profile = (ant_bsc_profile_t *)p_context;
    NRF_LOG_INFO("ant_bsc_disp_evt_handler\r\n"); 
    if (p_ant_evt->channel == p_profile->channel_number)
    {
        switch (p_ant_evt->event)
        {
            case EVENT_RX:
                if (p_ant_evt->message.ANT_MESSAGE_ucMesgID == SEQUENCE_FIRST_MESSAGE)
								 {
								   1st message;
								 }

Kind regards,

Rixtronix LAB

Related