
This is an example based on mbed-os cellular APIs that demonstrates a TCP or UDP echo transaction with a public echo server.
Diff: main.cpp
- Revision:
- 2:0f644d6045cf
- Parent:
- 0:4611f6cf2413
- Child:
- 6:5678c0b6f74e
--- a/main.cpp Fri Mar 09 09:30:19 2018 +0000 +++ b/main.cpp Fri Mar 09 14:00:19 2018 +0000 @@ -46,13 +46,13 @@ OnboardCellularInterface iface; // Echo server hostname -const char *host_name = "echo.u-blox.com"; +const char *host_name = "echo.mbedcloudtesting.com"; // Echo server port (same for TCP and UDP) const int port = 7; Mutex PrintMutex; -Thread dot_thread; +Thread dot_thread(osPriorityNormal, 512); #define PRINT_TEXT_LENGTH 128 char print_text[PRINT_TEXT_LENGTH];