Struct stm32wb_hci::vendor::stm32wb::command::gatt::AddCharacteristicParameters
source · pub struct AddCharacteristicParameters {
pub service_handle: ServiceHandle,
pub characteristic_uuid: Uuid,
pub characteristic_value_len: usize,
pub characteristic_properties: CharacteristicProperty,
pub security_permissions: CharacteristicPermission,
pub gatt_event_mask: CharacteristicEvent,
pub encryption_key_size: EncryptionKeySize,
pub is_variable: bool,
pub fw_version_before_v72: bool,
}Expand description
Parameters for the GATT Add Characteristic command.
Fields§
§service_handle: ServiceHandleHandle of the service to which the characteristic has to be added
characteristic_uuid: UuidUUID of the characteristic
characteristic_value_len: usizeMaximum length of the characteristic value
characteristic_properties: CharacteristicPropertyProperties of the characteristic (defined in Volume 3, Part G, Section 3.3.3.1 of Bluetooth Specification 4.1)
security_permissions: CharacteristicPermissionSecurity requirements of the characteristic
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.
fw_version_before_v72: boolIf true, the
characteristic_value_len
parameter only takes 1 byte.
Auto Trait Implementations§
impl RefUnwindSafe for AddCharacteristicParameters
impl Send for AddCharacteristicParameters
impl Sync for AddCharacteristicParameters
impl Unpin for AddCharacteristicParameters
impl UnwindSafe for AddCharacteristicParameters
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more