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()