HTTPClient test for IoT Workshop

Dependencies:   UbloxUSBModem mbed

Fork of UbloxModemHTTPClientTest by mbed official

Revision:
1:0112fc45285a
Child:
2:90109b8848e5
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Oct 18 21:05:40 2013 +0300
@@ -0,0 +1,25 @@
+#include "UBloxUSBGSMModem.h"
+#include "test_env.h"
+#include "httptest.h"
+
+#ifndef MODEM_APN
+#warning APN not specified, using "internet"
+#define APN "internet"
+#endif
+
+#ifndef MODEM_USERNAME
+#warning username not specified
+#define USERNAME NULL
+#endif
+
+#ifndef MODEM_PASSWORD
+#warning password not specified
+#define PASSWORD NULL
+#endif
+
+int main()
+{
+    UbloxUSBGSMModem modem;
+
+    notify_completion(httptest(modem, APN, USERNAME, PASSWORD));
+}