/* Function for parsing the length of an iOS attribute. Used in the parse_get_notif_attrs_response state machine. 
The Length is 2 bytes. Since there is a chance we reveice the bytes in two different GATTC notifications, we parse only the first byte here and then set the state machine ready to parse the next byte. */
static ble_ancs_c_parse_state_t attr_len1_parse(ble_ancs_c_t *p_ancs, const uint8_t *p_data_src, uint32_t *index)
/* Function for parsing the length of an iOS attribute. Used in the parse_get_notif_attrs_response state machine. 
The Length is 2 bytes. Since there is a chance we reveice the bytes in two different GATTC notifications, we parse only the first byte here and then set the state machine ready to parse the next byte. */
static ble_ancs_c_parse_state_t attr_len1_parse(ble_ancs_c_t *p_ancs, const uint8_t *p_data_src, uint32_t *index)
{
    p_ancs->evt.attr.attr_len  = p_data_src[(*index)++];
    return ATTR_LEN2;
}