ble client: added convinience functions for discovering characteristics

This commit is contained in:
mila@ringwald.ch 2014-03-06 15:03:59 +00:00
parent cf18d544cb
commit 0f39c632fe
2 changed files with 11 additions and 2 deletions

View File

@ -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(){

View File

@ -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);