![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Ble for smart sOlutions
Diff: source/InterestService.h
- Revision:
- 6:ee9c86f06eae
- Child:
- 7:9cda1b0f25ae
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/source/InterestService.h Mon May 20 09:55:38 2019 +0200 @@ -0,0 +1,38 @@ +// +// Created by kris on 7-5-19. +// + +#ifndef SSS_BLE_INTERESTSERVICE_H +#define SSS_BLE_INTERESTSERVICE_H + +#include "FlashIAP.h" + +#include "ble/BLE.h" +#include "CustomUUIDs.h" + +class InterestService { + //TODO: Constructor + //TODO: Color Characteristic + + + //TODO: Array van 5 bytes om interesses op te slaan + + //TODO: Filesystem support voor het opslaan van interesses +public: + virtual ~InterestService(); + + typedef int interests_T[5]; + InterestService(BLE &ble); + virtual void onDataWritten(const GattWriteCallbackParams *writeParams); + int readFromFs(); + int writeToFs(); + int createFs(); + private: + BLE& ble; + + interests_T interests; + ReadWriteGattCharacteristic<interests_T> interestCharacteristic; +}; + + +#endif //SSS_BLE_INTERESTSERVICE_H