Ble for smart sOlutions

Dependencies:   Adafruit_WS2801

source/InterestService.h

Committer:
kris@kris-X682X
Date:
2019-06-11
Revision:
9:92d861703f96
Parent:
7:9cda1b0f25ae
Child:
10:d845189d146e

File content as of revision 9:92d861703f96:

//
// 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