71 void handle(
const String &topic,
const Bytes &payload)
override
CallbackMQTTDevice(Handler handler)
Constructs a CallbackMQTTDevice with the specified message handler.
Definition CallbackMQTTDevice.h:55
std::function< void(MQTTDevice *device, const String &topic, const Bytes &payload)> Handler
Function type for MQTT message handlers.
Definition CallbackMQTTDevice.h:48
Handler mHandler
The user-provided message handler function.
Definition CallbackMQTTDevice.h:80
void handle(const String &topic, const Bytes &payload) override
Handles incoming MQTT messages by delegating to the callback function.
Definition CallbackMQTTDevice.h:71
MQTTDevice()
Constructs a new MQTTDevice instance.
Definition MQTTDevice.h:44
#define UNIOT_LOG_DEBUG(...)
Log an DEBUG level message Used for general information about system operation. Only compiled if UNIO...
Definition Logger.h:293
Contains all classes and functions related to the Uniot Core.