Ble for smart sOlutions

Dependencies:   Adafruit_WS2801

source/BleDevicePeripheral.h

Committer:
kris@kris-X682X
Date:
2019-06-20
Revision:
11:d6ed1437c2ee
Parent:
7:9cda1b0f25ae

File content as of revision 11:d6ed1437c2ee:

//
// 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"
class BleDevicePeripheral : public BleDevice {
private:
    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);

    virtual ~BleDevicePeripheral();
};


#endif //SSS_BLE_BLEDEVICEPERIPHERAL_H