mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-22 06:41:17 +00:00
gatt-service/ancs-client: extract ancs_client_handle_gatt_client_event_in_w4_service_result
This commit is contained in:
parent
12f6b60600
commit
0d0cbb529c
@ -257,20 +257,7 @@ static void ancs_client_send_next_query(void * context){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void ancs_client_handle_gatt_client_event_in_w4_service_result(uint8_t* packet) {
|
||||||
static void ancs_client_handle_gatt_client_event(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){
|
|
||||||
|
|
||||||
UNUSED(packet_type);
|
|
||||||
UNUSED(channel);
|
|
||||||
|
|
||||||
static const uint8_t ancs_notification_source_uuid[] = {0x9F,0xBF,0x12,0x0D,0x63,0x01,0x42,0xD9,0x8C,0x58,0x25,0xE6,0x99,0xA2,0x1D,0xBD};
|
|
||||||
static const uint8_t ancs_control_point_uuid[] = {0x69,0xD1,0xD8,0xF3,0x45,0xE1,0x49,0xA8,0x98,0x21,0x9B,0xBD,0xFD,0xAA,0xD9,0xD9};
|
|
||||||
static const uint8_t ancs_data_source_uuid[] = {0x22,0xEA,0xC6,0xE9,0x24,0xD6,0x4B,0xB5,0xBE,0x44,0xB3,0x6A,0xCE,0x7C,0x7B,0xFB};
|
|
||||||
|
|
||||||
gatt_client_characteristic_t characteristic;
|
|
||||||
|
|
||||||
switch(tc_state){
|
|
||||||
case TC_W4_SERVICE_RESULT:
|
|
||||||
switch(hci_event_packet_get_type(packet)){
|
switch(hci_event_packet_get_type(packet)){
|
||||||
case GATT_EVENT_SERVICE_QUERY_RESULT:
|
case GATT_EVENT_SERVICE_QUERY_RESULT:
|
||||||
gatt_event_service_query_result_get_service(packet, &ancs_service);
|
gatt_event_service_query_result_get_service(packet, &ancs_service);
|
||||||
@ -287,6 +274,22 @@ static void ancs_client_handle_gatt_client_event(uint8_t packet_type, uint16_t c
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static void ancs_client_handle_gatt_client_event(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){
|
||||||
|
|
||||||
|
UNUSED(packet_type);
|
||||||
|
UNUSED(channel);
|
||||||
|
|
||||||
|
static const uint8_t ancs_notification_source_uuid[] = {0x9F,0xBF,0x12,0x0D,0x63,0x01,0x42,0xD9,0x8C,0x58,0x25,0xE6,0x99,0xA2,0x1D,0xBD};
|
||||||
|
static const uint8_t ancs_control_point_uuid[] = {0x69,0xD1,0xD8,0xF3,0x45,0xE1,0x49,0xA8,0x98,0x21,0x9B,0xBD,0xFD,0xAA,0xD9,0xD9};
|
||||||
|
static const uint8_t ancs_data_source_uuid[] = {0x22,0xEA,0xC6,0xE9,0x24,0xD6,0x4B,0xB5,0xBE,0x44,0xB3,0x6A,0xCE,0x7C,0x7B,0xFB};
|
||||||
|
|
||||||
|
gatt_client_characteristic_t characteristic;
|
||||||
|
|
||||||
|
switch(tc_state){
|
||||||
|
case TC_W4_SERVICE_RESULT:
|
||||||
|
ancs_client_handle_gatt_client_event_in_w4_service_result(packet);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TC_W4_CHARACTERISTIC_RESULT:
|
case TC_W4_CHARACTERISTIC_RESULT:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user