/* Function for setting payload for ANT message and sending it.  */
static void ant_message_send(ant_bsc_profile_t *p_profile)
/* Function for setting payload for ANT message and sending it.  */
static void ant_message_send(ant_bsc_profile_t *p_profile)
{
    uint8_t p_message_payload[ANT_STANDARD_DATA_PAYLOAD_SIZE];
    uint32_t err_code;
    sens_message_encode(p_profile, p_message_payload);
    err_code = sd_ant_broadcast_message_tx(p_profile->channel_number,
                                           sizeof(p_message_payload),
                                           p_message_payload);
    APP_ERROR_CHECK(err_code);
}