2020-02-23 19:37:38 +00:00
|
|
|
#pragma once
|
|
|
|
#include "BLECharacteristic.h"
|
2020-06-08 23:06:59 +00:00
|
|
|
#include "PowerFSM.h" // FIXME - someday I want to make this OTA thing a separate lb at at that point it can't touch this
|
2020-02-23 19:37:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A characterstic with a set of overridable callbacks
|
|
|
|
*/
|
2020-06-08 23:06:59 +00:00
|
|
|
class CallbackCharacteristic : public BLECharacteristic, public BLECharacteristicCallbacks
|
2020-02-23 19:37:38 +00:00
|
|
|
{
|
2020-06-08 23:06:59 +00:00
|
|
|
public:
|
|
|
|
CallbackCharacteristic(const char *uuid, uint32_t btprops) : BLECharacteristic(uuid, btprops) { setCallbacks(this); }
|
2020-02-23 19:37:38 +00:00
|
|
|
};
|