/* Function for parsing command id and notification id. Used in the parse_get_notif_attrs_response state machine. 
UID and command ID will be received only once at the beginning of the first GATTC notification of a new attribute request for a given iOS notification. */
static ble_ancs_c_parse_state_t command_id_and_notif_parse(ble_ancs_c_t *p_ancs, const uint8_t *p_data_src, uint32_t *index)
/* Function for parsing command id and notification id. Used in the parse_get_notif_attrs_response state machine. 
UID and command ID will be received only once at the beginning of the first GATTC notification of a new attribute request for a given iOS notification. */
static ble_ancs_c_parse_state_t command_id_and_notif_parse(ble_ancs_c_t *p_ancs, const uint8_t *p_data_src, uint32_t *index)
{
    ble_ancs_c_command_id_values_t command_id;
    command_id = (ble_ancs_c_command_id_values_t) p_data_src[(*index)++];
    if(command_id != BLE_ANCS_COMMAND_ID_GET_NOTIF_ATTRIBUTES)
    {
        ANCS_LOG("[ANCS]: Invalid Command ID");
        return DONE;
    }
     p_ancs->evt.attr.notif_uid  = uint32_decode(&p_data_src[*index]);
     *index                     += sizeof(uint32_t);
     return ATTR_ID;
}