From 70cf8137dec886f68d7742c96968753489139d64 Mon Sep 17 00:00:00 2001 From: hsaturn Date: Wed, 24 Mar 2021 18:35:57 +0100 Subject: [PATCH] Fixed build of client-without-wifi --- examples/client-without-wifi/client-without-wifi.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/client-without-wifi/client-without-wifi.ino b/examples/client-without-wifi/client-without-wifi.ino index 15a6b6b..9340706 100644 --- a/examples/client-without-wifi/client-without-wifi.ino +++ b/examples/client-without-wifi/client-without-wifi.ino @@ -14,10 +14,10 @@ MqttBroker broker(1883); MqttClient mqtt_a(&broker); MqttClient mqtt_b(&broker); -void onPublishA(const Topic& topic, const char* payload, size_t length) +void onPublishA(const MqttClient* srce, const Topic& topic, const char* payload, size_t length) { Serial << "--> A Received " << topic.c_str() << endl; } -void onPublishB(const Topic& topic, const char* payload, size_t length) +void onPublishB(const MqttClient* srce, const Topic& topic, const char* payload, size_t length) { Serial << "--> B Received " << topic.c_str() << endl; } void setup()