USSDTest, working with SARA-G350 on C027
Dependencies: C027 UbloxUSBModem mbed
Fork of C027_HTTPClientTest by
Diff: main.cpp
- Revision:
- 8:95a97898084a
- Parent:
- 7:c558c74ceb0f
- Child:
- 9:574322be1093
--- a/main.cpp Mon Oct 21 15:42:24 2013 +0000 +++ b/main.cpp Mon Oct 21 20:01:16 2013 +0000 @@ -12,11 +12,12 @@ char str[512]; int ret = modem.connect("internet"); // eventaully set another apn here - if(ret) { - printf("Could not connect\n"); + if(ret) + { + printf("Could not connect %d\n", ret); return; } - + //GET data printf("Trying to fetch page...\n"); ret = http.get("http://mbed.org/media/uploads/donatien/hello.txt", str, 128);