diff --git a/example/libusb/ble_peripheral.c b/example/libusb/ble_peripheral.c index dd2a60757..4ef056ac5 100644 --- a/example/libusb/ble_peripheral.c +++ b/example/libusb/ble_peripheral.c @@ -266,7 +266,7 @@ static void app_run(){ // @param offset defines start of attribute value static uint16_t att_read_callback(uint16_t handle, uint16_t offset, uint8_t * buffer, uint16_t buffer_size){ - printf("READ Callback, handle %04x\n", handle); + printf("READ Callback, handle %04x, offset %u, buffer size %u\n", handle, offset, buffer_size); // find attribute int index = att_attribute_for_handle(handle); diff --git a/example/libusb/profile.gatt b/example/libusb/profile.gatt index ead7b7af1..5084c78ea 100644 --- a/example/libusb/profile.gatt +++ b/example/libusb/profile.gatt @@ -70,8 +70,12 @@ CHARACTERISTIC, 0000F109-0000-1000-8000-00805F9B34FB, READ | WRITE | DYNAMIC | E CHARACTERISTIC_USER_DESCRIPTION, READ | WRITE | DYNAMIC | ENCRYPTION_KEY_SIZE_16, // - write only CHARACTERISTIC, F10A, WRITE | DYNAMIC, -// - read/write only +// - read/write CHARACTERISTIC, F10B, READ | WRITE | DYNAMIC, +// - read/write without response +CHARACTERISTIC, F10C, READ | WRITE_WITHOUT_RESPONSE | DYNAMIC, +// - read/authenticated signed writes +CHARACTERISTIC, F10D, READ | AUTHENTICATED_SIGNED_WRITE | DYNAMIC, // Primary Service with 128-bit UUID, included service PRIMARY_SERVICE, 0000F001-0000-1000-8000-00805F9B34FB