diff --git a/ble/gatt_client.c b/ble/gatt_client.c index ee0ab3b8e..2efa0f655 100644 --- a/ble/gatt_client.c +++ b/ble/gatt_client.c @@ -578,7 +578,7 @@ static int is_value_valid(gatt_client_t *peripheral, uint8_t *packet, uint16_t s } -static gatt_client_t * get_gatt_client_context_for_handle(uint16_t handle){ +gatt_client_t * get_gatt_client_context_for_handle(uint16_t handle){ linked_item_t *it; for (it = (linked_item_t *) gatt_client_connections; it ; it = it->next){ gatt_client_t * peripheral = (gatt_client_t *) it; diff --git a/ble/gatt_client.h b/ble/gatt_client.h index cb3eb2c33..a947d28ac 100644 --- a/ble/gatt_client.h +++ b/ble/gatt_client.h @@ -213,6 +213,7 @@ void gatt_packet_handler(void * connection, uint8_t packet_type, uint16_t channe // start/stop gatt client void gatt_client_start(gatt_client_t *context, uint16_t handle); void gatt_client_stop(gatt_client_t *context); +gatt_client_t * get_gatt_client_context_for_handle(uint16_t handle); // returns primary services le_command_status_t gatt_client_discover_primary_services(gatt_client_t *context);