Skip to content

Commit dec0a85

Browse files
committed
Making it more clear what exactly is the content of the TX/RX message.
1 parent 9b4a937 commit dec0a85

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/UDP_Client/UDP_Client.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ void loop()
159159
if (bytes_read > 0) {
160160
udp_rx_msg_buf[bytes_read] = 0;
161161
}
162-
Serial.print("UDP packet content: ");
162+
Serial.print("UDP packet content: \"");
163163
Serial.print(reinterpret_cast<char *>(udp_rx_msg_buf));
164-
Serial.println();
164+
Serial.println("\"");
165165
}
166166
}
167167

examples/UDP_Server/UDP_Server.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ void loop()
149149
if (bytes_read > 0) {
150150
udp_rx_msg_buf[bytes_read] = 0;
151151
}
152-
Serial.print("UDP packet content: ");
152+
Serial.print("UDP packet content: \"");
153153
Serial.print(reinterpret_cast<char *>(udp_rx_msg_buf));
154-
Serial.println();
154+
Serial.println("\"");
155155

156156
/* Send back a reply, to the IP address and port we got the packet from. */
157157
tc6_inst->beginPacket(tc6_inst->remoteIP(), tc6_inst->remotePort());

0 commit comments

Comments
 (0)