diff --git a/src/Homie/Datatypes/Callbacks.hpp b/src/Homie/Datatypes/Callbacks.hpp index e81b7d8c..f3c6b9b5 100644 --- a/src/Homie/Datatypes/Callbacks.hpp +++ b/src/Homie/Datatypes/Callbacks.hpp @@ -1,13 +1,14 @@ #pragma once #include "../../HomieEvent.h" +#include namespace HomieInternals { typedef void (*OperationFunction)(); typedef bool (*GlobalInputHandler)(String nodeId, String property, String value); typedef bool (*NodeInputHandler)(String property, String value); - typedef bool (*PropertyInputHandler)(String value); + typedef std::function PropertyInputHandler; typedef void (*EventHandler)(HomieEvent event);