mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-25 06:40:10 +00:00
ble client: added convinience functions for discovering characteristics
This commit is contained in:
parent
cf18d544cb
commit
0f39c632fe
@ -527,6 +527,15 @@ le_command_status_t le_central_discover_characteristics_for_handle_range_by_uuid
|
|||||||
return BLE_PERIPHERAL_OK;
|
return BLE_PERIPHERAL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
le_command_status_t le_central_discover_characteristics_for_service_by_uuid16 (le_peripheral_t *peripheral, le_service_t *service, uint16_t uuid16){
|
||||||
|
return le_central_discover_characteristics_for_handle_range_by_uuid16(peripheral, service->start_group_handle, service->end_group_handle, uuid16);
|
||||||
|
}
|
||||||
|
|
||||||
|
le_command_status_t le_central_discover_characteristics_for_service_by_uuid128(le_peripheral_t *peripheral, le_service_t *service, uint8_t * uuid128){
|
||||||
|
return le_central_discover_characteristics_for_handle_range_by_uuid128(peripheral, service->start_group_handle, service->end_group_handle, uuid128);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void test_client();
|
void test_client();
|
||||||
|
|
||||||
static void gatt_client_run(){
|
static void gatt_client_run(){
|
||||||
|
@ -203,8 +203,8 @@ le_command_status_t le_central_discover_characteristics_in_handle_range_by_uuid1
|
|||||||
// { type (8), le_peripheral_t *context, service_handle, le_characteristic *}
|
// { type (8), le_peripheral_t *context, service_handle, le_characteristic *}
|
||||||
|
|
||||||
// more convenience
|
// more convenience
|
||||||
le_command_status_t le_central_discover_characteristics_for_service_with_uuid16 (le_peripheral_t *context, le_service_t *service, uint16_t uuid16);
|
le_command_status_t le_central_discover_characteristics_for_service_by_uuid16 (le_peripheral_t *context, le_service_t *service, uint16_t uuid16);
|
||||||
le_command_status_t le_central_discover_characteristics_for_service_with_uuid128(le_peripheral_t *context, le_service_t *service, uint8_t * uuid128);
|
le_command_status_t le_central_discover_characteristics_for_service_by_uuid128(le_peripheral_t *context, le_service_t *service, uint8_t * uuid128);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user