Kris Scholte Lubberink
/
SSS_Ble
Ble for smart sOlutions
source/BleDevicePeripheral.h
- Committer:
- kris@kris-X682X
- Date:
- 2019-05-20
- Revision:
- 6:ee9c86f06eae
- Child:
- 7:9cda1b0f25ae
File content as of revision 6:ee9c86f06eae:
// // 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