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: wave_player 4DGL-uLCD-SE HC_SR04_Ultrasonic_Library
Diff: main.cpp
- Revision:
- 48:f2739ac5cb01
- Parent:
- 47:08787ef063cb
- Child:
- 49:1923a727df5b
--- a/main.cpp Wed Jun 06 15:00:09 2018 +0100
+++ b/main.cpp Mon Jun 18 09:15:03 2018 +0100
@@ -14,6 +14,11 @@
// Bring up the ethernet interface
printf("Ethernet socket example\n");
+
+#ifdef MBED_MAJOR_VERSION
+ printf("Mbed OS version %d.%d.%d\n\n", MBED_MAJOR_VERSION, MBED_MINOR_VERSION, MBED_PATCH_VERSION);
+#endif
+
r = net.connect();
if (r != 0) {
printf("Error! net.connect() returned: %d\n", r);