mqtt on_message: make char * conversion more clear

This commit is contained in:
MichaelDvP
2023-07-24 19:56:07 +02:00
parent 2e829b560d
commit 01060574ab
2 changed files with 8 additions and 10 deletions

View File

@@ -230,7 +230,7 @@ class Mqtt {
static void queue_unsubscribe_message(const std::string & topic);
void on_publish(uint16_t packetId) const;
void on_message(const char * topic, const char * payload, size_t len) const;
void on_message(const char * topic, const uint8_t * payload, size_t len) const;
// function handlers for MQTT subscriptions
struct MQTTSubFunction {