different write types

This commit is contained in:
matthias.ringwald@gmail.com 2014-01-30 18:51:28 +00:00
parent bacb966865
commit 75aa0ba733
2 changed files with 6 additions and 2 deletions

View File

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

View File

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