Example NB-IoT Project for ublox C030-N211
Dependencies: ublox-at-cellular-interface ublox-cellular-base ublox-cellular-base-n2xx ublox-at-cellular-interface-n2xx
Diff: main.cpp
- Revision:
- 2:dbf7dd3da592
- Parent:
- 1:581335dbdd60
- Child:
- 3:7ca70581ef20
--- a/main.cpp Fri Jun 09 12:42:49 2017 +0100 +++ b/main.cpp Fri Jun 09 11:55:01 2017 +0000 @@ -186,6 +186,7 @@ sockTcp.set_timeout(10000); printf("Connecting socket to %s on port %d...\n", tcpServer.get_ip_address(), tcpServer.get_port()); if (sockTcp.connect(tcpServer) == 0) { + pulseEvent(); printf("Connected, sending HTTP GET request to \"developer.mbed.org\" over socket...\n"); strcpy (buf, "GET /media/uploads/mbed_official/hello.txt HTTP/1.0\r\n\r\n"); // Note: since this is a short string we can send it in one go as it will @@ -221,7 +222,7 @@ printf("Stopped.\n"); } else { bad(); - printf("Unable to get IP address of \"mbed.org\".\n"); + printf("Unable to get IP address of \"developer.mbed.org\" or \"2.pool.ntp.org\".\n"); } } else { bad();