firmware/src/esp32/CallbackCharacteristic.h

13 lines
458 B
C
Raw Normal View History

2020-02-23 19:37:38 +00:00
#pragma once
#include "BLECharacteristic.h"
#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
*/
class CallbackCharacteristic : public BLECharacteristic, public BLECharacteristicCallbacks
2020-02-23 19:37:38 +00:00
{
public:
CallbackCharacteristic(const char *uuid, uint32_t btprops) : BLECharacteristic(uuid, btprops) { setCallbacks(this); }
2020-02-23 19:37:38 +00:00
};