|
ELEC-C7222
Libraries for ELEC C7222 Course Work
|
This example demonstrates the minimal pattern for implementing a custom BLE service with a readable characteristic and a writable characteristic.
example-ble-custom-service-rwlibs/elec_c7222/examples/ble/custom-service-rw/main_ble_custom_service_rw.cpplibs/elec_c7222/examples/ble/custom-service-rw/app_profile.gatt.gatt fileAttributeServerCharacteristic::EventHandlerCustom vendor service: 0xFFE0
| UUID | Name | Properties |
|---|---|---|
0xFFE1 | PublicValue | READ |
0xFFE2 | WriteValue | WRITE / WRITE_WITHOUT_RESPONSE |
c7222-rw-demo)PublicValue -> returns the current valueWriteValuePublicValue again -> it becomes whatever you wroteThe .gatt file uses DYNAMIC for both characteristics so the application can update values and receive write events.