diff --git a/src/NimBLERemoteCharacteristic.h b/src/NimBLERemoteCharacteristic.h index 38e3b6c..720a4da 100644 --- a/src/NimBLERemoteCharacteristic.h +++ b/src/NimBLERemoteCharacteristic.h @@ -24,13 +24,14 @@ #include "NimBLERemoteDescriptor.h" #include +#include class NimBLERemoteService; class NimBLERemoteDescriptor; -typedef void (*notify_callback)(NimBLERemoteCharacteristic* pBLERemoteCharacteristic, - uint8_t* pData, size_t length, bool isNotify); +typedef std::function notify_callback; typedef struct { const NimBLEUUID *uuid;