From f63498334b25e2291c0ddc89facb481293501d59 Mon Sep 17 00:00:00 2001 From: Brendan <2bndy5@gmail.com> Date: Sun, 7 Jul 2024 05:46:02 -0700 Subject: [PATCH] [examples/mqtt_no_blk] remove unused parameters also change signature to `String&` instead of `char*` (as that is what is documented in the MQTT lib's README) --- examples/MQTT/mqtt_basic_no_blk/mqtt_basic_no_blk.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/MQTT/mqtt_basic_no_blk/mqtt_basic_no_blk.ino b/examples/MQTT/mqtt_basic_no_blk/mqtt_basic_no_blk.ino index 30c66ff..02af354 100644 --- a/examples/MQTT/mqtt_basic_no_blk/mqtt_basic_no_blk.ino +++ b/examples/MQTT/mqtt_basic_no_blk/mqtt_basic_no_blk.ino @@ -47,7 +47,7 @@ IPAddress gateway(10, 10, 2, 2); //Specify the gateway in case different from t IPAddress server(10, 10, 2, 2); //The ip of the MQTT server char clientID[] = { "arduinoClient " }; -void messageReceived(MQTTClient* client, char topic[], char payload[], int length) { +void messageReceived(String& topic, String& payload) { Serial.println("incoming: "); Serial.print(topic); Serial.print(" - ");