Ble for smart sOlutions

Dependencies:   Adafruit_WS2801

Revision:
6:ee9c86f06eae
Child:
7:9cda1b0f25ae
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/source/BleDevicePeripheral.h	Mon May 20 09:55:38 2019 +0200
@@ -0,0 +1,30 @@
+//
+// Created by kris on 20-4-19.
+//
+
+#ifndef SSS_BLE_BLEDEVICEPERIPHERAL_H
+#define SSS_BLE_BLEDEVICEPERIPHERAL_H
+#include "BleDevice.h"
+#include "InterestService.h"
+
+#include "ColorService.h"
+const static char     DEVICE_NAME[] = "SSS-Wearable";
+
+class BleDevicePeripheral : public BleDevice {
+private:
+    static ColorService* colorServicePtr;
+    uint16_t uuid16_list;
+    ColorService *cs;
+    InterestService *is;
+public:
+    BleDevicePeripheral(const BLE &ble, EventQueue &eventQueue);
+    virtual void stop();
+    virtual void start();
+
+    /** This is called by Gap to notify the application we connected,
+     *  in our case it immediately requests a change in link security */
+    virtual void onConnectionComplete(const ble::ConnectionCompleteEvent &event);
+};
+
+
+#endif //SSS_BLE_BLEDEVICEPERIPHERAL_H