Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: UsaClient
Diff: main.cpp
- Revision:
- 1:c050a4297deb
- Parent:
- 0:4d6a8970674c
- Child:
- 2:1b4bba79cd29
diff -r 4d6a8970674c -r c050a4297deb main.cpp
--- a/main.cpp Sun Oct 24 15:18:12 2021 +0000
+++ b/main.cpp Thu Oct 28 05:26:27 2021 +0000
@@ -17,7 +17,7 @@
printf("IP: %s\r\n", sockAddr.get_ip_address() ? sockAddr.get_ip_address() : "No IP");
- UsaClient udp(&net, "192.168.10.104", 10000); // server IP address, Port number
+ UsaClient udp(&net, "192.168.251.42", 10000); // server IP address, Port number
uint8_t send[6] = {1, 4, 9, 16, 25, 0};
uint8_t recv[6];
@@ -30,7 +30,7 @@
}
udp.Read(2, recv, 6);
printf("%3d, %3d, %3d, %3d, %3d, %3d\r\n", recv[0], recv[1], recv[2], recv[3], recv[4], recv[5]);
- thread_sleep_for(100);
+ ThisThread::sleep_for(chrono::milliseconds(100));
}
}
\ No newline at end of file