From 26b0d6301bd38afa79541e6593aa2b3a96cd8d92 Mon Sep 17 00:00:00 2001 From: Milanka Ringwald Date: Fri, 28 Jan 2022 09:10:12 +0100 Subject: [PATCH] gatt-service/vcs: read configurations --- src/ble/gatt-service/volume_control_service_server.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ble/gatt-service/volume_control_service_server.c b/src/ble/gatt-service/volume_control_service_server.c index d2a8c1c8b..32daccd1c 100644 --- a/src/ble/gatt-service/volume_control_service_server.c +++ b/src/ble/gatt-service/volume_control_service_server.c @@ -145,6 +145,14 @@ static uint16_t volume_control_service_read_callback(hci_con_handle_t con_handle return att_read_callback_handle_byte((uint8_t)vcs_volume_flags_volume_setting_persisted, offset, buffer, buffer_size); } + if (attribute_handle == vcs_volume_state_client_configuration_handle){ + return att_read_callback_handle_little_endian_16(vcs_volume_state_client_configuration, offset, buffer, buffer_size); + } + + if (attribute_handle == vcs_volume_flags_client_configuration_handle){ + return att_read_callback_handle_little_endian_16(vcs_volume_flags_client_configuration, offset, buffer, buffer_size); + } + return 0; }