mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-24 13:43:38 +00:00
example/le_streamer: use single characteristic for write without reponse and notify, track data received by writes
This commit is contained in:
parent
e3ee42a534
commit
8f03f23d90
@ -329,10 +329,11 @@ static int att_write_callback(hci_con_handle_t con_handle, uint16_t att_handle,
|
||||
}
|
||||
test_reset(context);
|
||||
break;
|
||||
case ATT_CHARACTERISTIC_0000FF12_0000_1000_8000_00805F9B34FB_01_VALUE_HANDLE:
|
||||
printf("%c: Write to ...FF12... : ", context->name);
|
||||
printf_hexdump(buffer, buffer_size);
|
||||
break;
|
||||
case ATT_CHARACTERISTIC_0000FF11_0000_1000_8000_00805F9B34FB_01_VALUE_HANDLE:
|
||||
test_track_sent(context, buffer_size);
|
||||
break;
|
||||
default:
|
||||
printf("Write to 0x%04x, len %u\n", att_handle, buffer_size);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
@ -6,9 +6,7 @@ CHARACTERISTIC, GATT_SERVICE_CHANGED, READ,
|
||||
|
||||
// Test Service
|
||||
PRIMARY_SERVICE, 0000FF10-0000-1000-8000-00805F9B34FB
|
||||
// Test Characteristic, only notify
|
||||
CHARACTERISTIC, 0000FF11-0000-1000-8000-00805F9B34FB, NOTIFY,
|
||||
// Test Characterisitic, only write_without_response
|
||||
CHARACTERISTIC, 0000FF12-0000-1000-8000-00805F9B34FB, WRITE_WITHOUT_RESPONSE | DYNAMIC,
|
||||
// Test Characteristic, both write_without_response as well as notify
|
||||
CHARACTERISTIC, 0000FF11-0000-1000-8000-00805F9B34FB, WRITE_WITHOUT_RESPONSE | NOTIFY | DYNAMIC,
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user