Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c10e389

Browse filesBrowse files
committed
Correct topic format printing
1 parent 253a12e commit c10e389
Copy full SHA for c10e389

File tree

Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed

‎examples/WiFiEcho/WiFiEcho.ino

Copy file name to clipboardExpand all lines: examples/WiFiEcho/WiFiEcho.ino
+1-1Lines changed: 1 addition & 1 deletion
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);

‎examples/WiFiSimpleReceive/WiFiSimpleReceive.ino

Copy file name to clipboardExpand all lines: examples/WiFiSimpleReceive/WiFiSimpleReceive.ino
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.