Skip to content

Commit

Permalink
[examples/mqtt_no_blk] remove unused parameters
Browse files Browse the repository at this point in the history
also change signature to `String&` instead of `char*` (as that is what is documented in the MQTT lib's README)
  • Loading branch information
2bndy5 committed Jul 7, 2024
1 parent fd4ab23 commit f634983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/MQTT/mqtt_basic_no_blk/mqtt_basic_no_blk.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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(" - ");
Expand Down

0 comments on commit f634983

Please sign in to comment.