summaryrefslogtreecommitdiff
path: root/sensor/patchedBLE/src/BLE2902.h
diff options
context:
space:
mode:
Diffstat (limited to 'sensor/patchedBLE/src/BLE2902.h')
-rw-r--r--sensor/patchedBLE/src/BLE2902.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/sensor/patchedBLE/src/BLE2902.h b/sensor/patchedBLE/src/BLE2902.h
new file mode 100644
index 0000000..397360a
--- /dev/null
+++ b/sensor/patchedBLE/src/BLE2902.h
@@ -0,0 +1,34 @@
+/*
+ * BLE2902.h
+ *
+ * Created on: Jun 25, 2017
+ * Author: kolban
+ */
+
+#ifndef COMPONENTS_CPP_UTILS_BLE2902_H_
+#define COMPONENTS_CPP_UTILS_BLE2902_H_
+#include "sdkconfig.h"
+#if defined(CONFIG_BT_ENABLED)
+
+#include "BLEDescriptor.h"
+
+/**
+ * @brief Descriptor for Client Characteristic Configuration.
+ *
+ * This is a convenience descriptor for the Client Characteristic Configuration which has a UUID of 0x2902.
+ *
+ * See also:
+ * https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.descriptor.gatt.client_characteristic_configuration.xml
+ */
+class BLE2902: public BLEDescriptor {
+public:
+ BLE2902();
+ bool getNotifications();
+ bool getIndications();
+ void setNotifications(bool flag);
+ void setIndications(bool flag);
+
+}; // BLE2902
+
+#endif /* CONFIG_BT_ENABLED */
+#endif /* COMPONENTS_CPP_UTILS_BLE2902_H_ */