Ble for smart sOlutions

Dependencies:   Adafruit_WS2801

Committer:
kris@kris-X682X
Date:
Fri Jun 14 10:24:57 2019 +0200
Revision:
10:d845189d146e
Parent:
9:92d861703f96
WS2801 working, fancy lightshows

Who changed what in which revision?

UserRevisionLine numberNew contents of line
kris@kris-X682X 6:ee9c86f06eae 1 //
kris@kris-X682X 6:ee9c86f06eae 2 // Created by kris on 7-5-19.
kris@kris-X682X 6:ee9c86f06eae 3 //
kris@kris-X682X 6:ee9c86f06eae 4
kris@kris-X682X 6:ee9c86f06eae 5 #ifndef SSS_BLE_INTERESTSERVICE_H
kris@kris-X682X 6:ee9c86f06eae 6 #define SSS_BLE_INTERESTSERVICE_H
kris@kris-X682X 6:ee9c86f06eae 7
kris@kris-X682X 6:ee9c86f06eae 8 #include "FlashIAP.h"
kris@kris-X682X 6:ee9c86f06eae 9
kris@kris-X682X 6:ee9c86f06eae 10 #include "ble/BLE.h"
kris@kris-X682X 6:ee9c86f06eae 11 #include "CustomUUIDs.h"
kris@kris-X682X 6:ee9c86f06eae 12
kris@kris-X682X 6:ee9c86f06eae 13 class InterestService {
kris@kris-X682X 6:ee9c86f06eae 14
kris@kris-X682X 6:ee9c86f06eae 15 public:
kris@kris-X682X 6:ee9c86f06eae 16 virtual ~InterestService();
kris@kris-X682X 6:ee9c86f06eae 17
kris@kris-X682X 9:92d861703f96 18 typedef int interests_T[5];
kris@kris-X682X 6:ee9c86f06eae 19 InterestService(BLE &ble);
kris@kris-X682X 6:ee9c86f06eae 20 virtual void onDataWritten(const GattWriteCallbackParams *writeParams);
kris@kris-X682X 6:ee9c86f06eae 21 int readFromFs();
kris@kris-X682X 6:ee9c86f06eae 22 int writeToFs();
kris@kris-X682X 6:ee9c86f06eae 23 int createFs();
kris@kris-X682X 6:ee9c86f06eae 24 private:
kris@kris-X682X 6:ee9c86f06eae 25 BLE& ble;
kris@kris-X682X 6:ee9c86f06eae 26
kris@kris-X682X 6:ee9c86f06eae 27 interests_T interests;
kris@kris-X682X 6:ee9c86f06eae 28 ReadWriteGattCharacteristic<interests_T> interestCharacteristic;
kris@kris-X682X 6:ee9c86f06eae 29 };
kris@kris-X682X 6:ee9c86f06eae 30
kris@kris-X682X 6:ee9c86f06eae 31
kris@kris-X682X 6:ee9c86f06eae 32 #endif //SSS_BLE_INTERESTSERVICE_H