docs: update GATT profile

This commit is contained in:
Milanka Ringwald 2021-09-29 10:23:43 +02:00
parent e57a777bad
commit 5e9859c731

View File

@ -574,7 +574,7 @@ are forwarded to the application via callback. Otherwise, the
Characteristics cannot be written and it will return the specified Characteristics cannot be written and it will return the specified
constant value. constant value.
Adding NOTIFY and/or INDICATE automatically creates an addition Client Adding NOTIFY and/or INDICATE automatically creates an additional Client
Configuration Characteristic. Configuration Characteristic.
Property | Meaning Property | Meaning
@ -598,6 +598,16 @@ WRITE_ENCRYPTED | Write operations require Encryption
WRITE_AUTHENTICATED | Write operations require Authentication WRITE_AUTHENTICATED | Write operations require Authentication
ENCRYPTION_KEY_SIZE_X | Require encryption size >= X, with W in [7..16] ENCRYPTION_KEY_SIZE_X | Require encryption size >= X, with W in [7..16]
For example, Volume State Characteristic (Voice Control Service) requires:
- Mandatory Properties: Read, Notify
- Security Permittions: Encryption Required
In addition, its read is handled by application. We can model this Characteristic as follows:
~~~~
CHARACTERISTIC, ORG_BLUETOOTH_CHARACTERISTIC_VOLUME_STATE, DYNAMIC | READ | NOTIFY | ENCRYPTION_KEY_SIZE_16
~~~~
To use already implemented GATT Services, you can import it To use already implemented GATT Services, you can import it
using the *#import <service_name.gatt>* command. See [list of provided services](gatt_services.md). using the *#import <service_name.gatt>* command. See [list of provided services](gatt_services.md).