Struct stm32wb_hci::vendor::stm32wb::command::gatt::AddDescriptorParameters
source · pub struct AddDescriptorParameters<'a> {
pub service_handle: AttributeHandle,
pub characteristic_handle: AttributeHandle,
pub descriptor_uuid: Uuid,
pub descriptor_value_max_len: usize,
pub descriptor_value: &'a [u8],
pub security_permissions: DescriptorPermission,
pub access_permissions: AccessPermission,
pub gatt_event_mask: CharacteristicEvent,
pub encryption_key_size: EncryptionKeySize,
pub is_variable: bool,
}Expand description
Parameters for the GATT Add Characteristic Descriptor command.
Fields§
§service_handle: AttributeHandleHandle of the service to which characteristic belongs.
characteristic_handle: AttributeHandleHandle of the characteristic to which description is to be added.
descriptor_uuid: UuidUUID of the characteristic descriptor.
See KnownDescriptor for some useful descriptors. This value is not restricted to the known descriptors, however.
descriptor_value_max_len: usizeThe maximum length of the descriptor value.
descriptor_value: &'a [u8]Current Length of the characteristic descriptor value.
security_permissions: DescriptorPermissionWhat security requirements must be met before the descriptor can be accessed.
access_permissions: AccessPermissionWhat types of access are allowed for the descriptor.
gatt_event_mask: CharacteristicEventWhich types of events will be generated when the attribute is accessed.
encryption_key_size: EncryptionKeySizeThe minimum encryption key size requirement for this attribute.
is_variable: boolIf true, the attribute has a variable length value field. Otherwise, the value field length is fixed.