Skip to content

Commit

Permalink
Add constants for CharacteristPermission::NONE and CharacteristicEven…
Browse files Browse the repository at this point in the history
…t::NONE
  • Loading branch information
antoinevg committed Sep 27, 2021
1 parent a388351 commit 84cc954
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/command/gatt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1549,6 +1549,9 @@ bitflags! {
/// [Permissions](AddCharacteristicParameter::security_permissions) available for
/// characteristics.
pub struct CharacteristicPermission: u8 {
/// No security.
const NONE = 0x00;

/// Need authentication to read.
const AUTHENTICATED_READ = 0x01;

Expand All @@ -1572,6 +1575,9 @@ bitflags! {
bitflags! {
/// Which events may be generated when a characteristic is accessed.
pub struct CharacteristicEvent: u8 {
/// No events.
const NONE = 0x00;

/// The application will be notified when a client writes to this attribute.
const ATTRIBUTE_WRITE = 0x01;

Expand Down

0 comments on commit 84cc954

Please sign in to comment.