Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
cs_CharacteristicStructs.h
Go to the documentation of this file.
1/*
2 * Author: Crownstone Team
3 * Copyright: Crownstone (https://crownstone.rocks)
4 * Date: Sep 1, 2022
5 * License: LGPLv3+, Apache License 2.0, and/or MIT (triple-licensed)
6 */
7
8#pragma once
9
11#include <protocol/cs_Packets.h>
12
13#include <cstdint>
14
17 bool read = false;
18
20 bool write = false;
21
23 bool notify = false;
24
28 bool autoNotify = false;
29
40 bool notificationChunker = false;
41
43 bool encrypted = false;
44
52
60
64 ConnectionEncryptionType encryptionType = ConnectionEncryptionType::CTR;
65};
66
73
76
79};
CharacteristicEventType
Definition: cs_CharacteristicStructs.h:67
@ CHARACTERISTIC_EVENT_NOTIFY_DONE
The notification of indication was sent.
Definition: cs_CharacteristicStructs.h:78
@ CHARACTERISTIC_EVENT_SUBSCRIPTION
The connected device subscribed or unsubscribed for notifications or indications.
Definition: cs_CharacteristicStructs.h:75
@ CHARACTERISTIC_EVENT_WRITE
The characteristic value was written by the connected device.
Definition: cs_CharacteristicStructs.h:72
ConnectionEncryptionType
Definition: cs_ConnectionEncryption.h:16
EncryptionAccessLevel
Packets (structs) that are used over the air, over uart, or stored in flash.
Definition: cs_Packets.h:36
@ ADMIN
Definition: cs_Packets.h:37
Definition: cs_CharacteristicStructs.h:15
bool sharedEncryptionBuffer
Whether to use a shared encryption buffer.
Definition: cs_CharacteristicStructs.h:51
bool read
Whether the characteristic is readable.
Definition: cs_CharacteristicStructs.h:17
bool write
Whether the characteristic can be written to with or without response.
Definition: cs_CharacteristicStructs.h:20
bool encrypted
Whether to encrypt the characteristic value.
Definition: cs_CharacteristicStructs.h:43
bool notificationChunker
Whether to notify the value in multiple notifications.
Definition: cs_CharacteristicStructs.h:40
bool autoNotify
Whether the characteristic should automatically notify the value when you updated the value.
Definition: cs_CharacteristicStructs.h:28
EncryptionAccessLevel minAccessLevel
The minimum encryption level to be used for this characteristic.
Definition: cs_CharacteristicStructs.h:59
bool notify
Whether the characteristic supports notifications and indications.
Definition: cs_CharacteristicStructs.h:23
ConnectionEncryptionType encryptionType
Type of encryption to use.
Definition: cs_CharacteristicStructs.h:64