Skip to content

Commit c10e389

Browse files
committedJan 14, 2019
Correct topic format printing
1 parent 253a12e commit c10e389

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

Diff for: ‎examples/WiFiEcho/WiFiEcho.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ void loop() {
9797
int messageSize = mqttClient.parseMessage();
9898
if (messageSize) {
9999
// we received a message, print out the topic and contents
100-
Serial.println("Received a message with topic '");
100+
Serial.print("Received a message with topic '");
101101
Serial.print(mqttClient.messageTopic());
102102
Serial.print("', length ");
103103
Serial.print(messageSize);

Diff for: ‎examples/WiFiSimpleReceive/WiFiSimpleReceive.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ void loop() {
8989
int messageSize = mqttClient.parseMessage();
9090
if (messageSize) {
9191
// we received a message, print out the topic and contents
92-
Serial.println("Received a message with topic '");
92+
Serial.print("Received a message with topic '");
9393
Serial.print(mqttClient.messageTopic());
9494
Serial.print("', length ");
9595
Serial.print(messageSize);

0 commit comments

Comments
 (0)
Please sign in to comment.