mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-04 15:39:59 +00:00
different write types
This commit is contained in:
parent
bacb966865
commit
75aa0ba733
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user