/* Function for setting payload for ANT message and sending it.  */
static void ant_message_send(ant_hrm_profile_t *p_profile)
/* Function for setting payload for ANT message and sending it.  */
static void ant_message_send(ant_hrm_profile_t *p_profile)
{
        uint32_t err_code;
    uint8_t  p_message_payload[ANT_STANDARD_DATA_PAYLOAD_SIZE];
                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);
}