
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:
- 34:6f85d44597ac
- Parent:
- 28:232da3ce8a88
- Child:
- 36:6294a71c9e9e
diff -r e36957d5faa1 -r 6f85d44597ac main.cpp --- a/main.cpp Wed Feb 13 18:37:19 2019 +0000 +++ b/main.cpp Fri Feb 15 15:26:44 2019 +0000 @@ -207,6 +207,11 @@ int main() { print_function("\n\nmbed-os-example-cellular\n"); + print_function("\n\nBuilt: %s, %s\n", __DATE__, __TIME__); +#ifdef MBED_CONF_NSAPI_DEFAULT_CELLULAR_PLMN + print_function("\n\n[MAIN], plmn: %s\n", MBED_CONF_NSAPI_DEFAULT_CELLULAR_PLMN); +#endif + print_function("Establishing connection\n"); #if MBED_CONF_MBED_TRACE_ENABLE trace_open();