File tree 2 files changed +8
-13
lines changed
2 files changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -147,17 +147,15 @@ void loop()
147
147
if (rx_packet_size)
148
148
{
149
149
/* Print some metadata from received UDP packet. */
150
- Serial.print (" Received " );
150
+ Serial.print (" [" );
151
+ Serial.print (millis ());
152
+ Serial.print (" ] Received " );
151
153
Serial.print (rx_packet_size);
152
154
Serial.print (" bytes from " );
153
155
Serial.print (udp_client.remoteIP ());
154
156
Serial.print (" port " );
155
157
Serial.print (udp_client.remotePort ());
156
- Serial.println ();
157
-
158
- Serial.print (" [" );
159
- Serial.print (millis ());
160
- Serial.print (" ] UDP_Client received packet content: \" " );
158
+ Serial.print (" , data = \" " );
161
159
162
160
/* Read from received UDP packet. */
163
161
size_t const UDP_RX_MSG_BUF_SIZE = 16 + 1 ; /* Reserve the last byte for the '\0' termination. */
Original file line number Diff line number Diff line change @@ -130,17 +130,15 @@ void loop()
130
130
uint16_t const destination_port = udp_server.remotePort ();
131
131
132
132
/* Print some metadata from received UDP packet. */
133
- Serial.print (" Received " );
133
+ Serial.print (" [" );
134
+ Serial.print (millis ());
135
+ Serial.print (" ] Received " );
134
136
Serial.print (rx_packet_size);
135
137
Serial.print (" bytes from " );
136
138
Serial.print (udp_server.remoteIP ());
137
139
Serial.print (" port " );
138
140
Serial.print (udp_server.remotePort ());
139
- Serial.println ();
140
-
141
- Serial.print (" [" );
142
- Serial.print (millis ());
143
- Serial.print (" ] UDP_Server received packet content: \" " );
141
+ Serial.print (" , data = \" " );
144
142
145
143
/* Read from received UDP packet. */
146
144
size_t const UDP_RX_MSG_BUF_SIZE = 16 + 1 ; /* Reserve the last byte for the '\0' termination. */
@@ -170,7 +168,6 @@ void loop()
170
168
}
171
169
}
172
170
173
-
174
171
static void OnPlcaStatus (bool success, bool plcaStatus)
175
172
{
176
173
if (!success)
You can’t perform that action at this time.
0 commit comments