Example program for MTS Universal Socked Modem Shield. Test that you can connect to a network.
Dependencies: SocketModem mbed
Diff: main.cpp
- Revision:
- 3:ad2245759407
- Parent:
- 2:76a4d7e86a3c
- Child:
- 5:6950fcac0abd
--- a/main.cpp Sat Jan 04 20:30:06 2014 +0000 +++ b/main.cpp Sat Jan 04 20:55:44 2014 +0000 @@ -51,8 +51,8 @@ printf("Connected to the Network!\n\r"); //Try pinging default server "8.8.8.8" (Google's DNS) - printf("Ping Valid: %s\n\r", cellular->ping() ? "true" : "false"); - - printf("End Program\n\r"); - while(1); + while (true) { + printf("Ping Valid: %s\n\r", cellular->ping() ? "true" : "false"); + wait(3); + } }