mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-29 12:32:54 +00:00
auto-pts: implement gatt client discover all primary services
This commit is contained in:
parent
dae0449b9c
commit
2c465bc1f2
@ -1225,7 +1225,15 @@ static void btp_gatt_handler(uint8_t opcode, uint8_t controller_index, uint16_t
|
||||
btp_send(BTP_SERVICE_ID_GATT, opcode, controller_index, 0, NULL);
|
||||
break;
|
||||
case BTP_GATT_OP_DISC_ALL_PRIM:
|
||||
MESSAGE("BTP_GATT_OP_DISC_ALL_PRIM - NOP");
|
||||
MESSAGE("BTP_GATT_OP_DISC_ALL_PRIM");
|
||||
// initialize response
|
||||
response_len = 0;
|
||||
response_buffer[response_len++] = 0;
|
||||
response_service_id = BTP_SERVICE_ID_GATT;
|
||||
response_op = opcode;
|
||||
if (controller_index == 0){
|
||||
gatt_client_discover_primary_services(&gatt_client_packet_handler, remote_handle);
|
||||
}
|
||||
break;
|
||||
case BTP_GATT_OP_DISC_PRIM_UUID:
|
||||
MESSAGE("BTP_GATT_OP_DISC_PRIM_UUID");
|
||||
|
Loading…
x
Reference in New Issue
Block a user