print node ids correctly
This commit is contained in:
parent
b1fea35e47
commit
ccfb30707a
2 changed files with 3 additions and 2 deletions
|
@ -78,7 +78,7 @@ send_packet(void *ptr)
|
|||
|
||||
seq_id++;
|
||||
PRINTF("DATA send to %d 'Hello %d'\n",
|
||||
client_conn->ripaddr.u8[15], seq_id);
|
||||
server_ipaddr.u8[sizeof(server_ipaddr.u8) - 1], seq_id);
|
||||
sprintf(buf, "Hello %d from the client", seq_id);
|
||||
uip_udp_packet_sendto(client_conn, buf, strlen(buf),
|
||||
&server_ipaddr, UIP_HTONS(UDP_SERVER_PORT));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue