HTTPClient test for IoT Workshop

Dependencies:   UbloxUSBModem mbed

Fork of UbloxModemHTTPClientTest by mbed official

Committer:
bogdanm
Date:
Fri Oct 18 21:05:40 2013 +0300
Revision:
1:0112fc45285a
Child:
2:90109b8848e5
Initial release of the test program

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bogdanm 1:0112fc45285a 1 #include "UBloxUSBGSMModem.h"
bogdanm 1:0112fc45285a 2 #include "test_env.h"
bogdanm 1:0112fc45285a 3 #include "httptest.h"
bogdanm 1:0112fc45285a 4
bogdanm 1:0112fc45285a 5 #ifndef MODEM_APN
bogdanm 1:0112fc45285a 6 #warning APN not specified, using "internet"
bogdanm 1:0112fc45285a 7 #define APN "internet"
bogdanm 1:0112fc45285a 8 #endif
bogdanm 1:0112fc45285a 9
bogdanm 1:0112fc45285a 10 #ifndef MODEM_USERNAME
bogdanm 1:0112fc45285a 11 #warning username not specified
bogdanm 1:0112fc45285a 12 #define USERNAME NULL
bogdanm 1:0112fc45285a 13 #endif
bogdanm 1:0112fc45285a 14
bogdanm 1:0112fc45285a 15 #ifndef MODEM_PASSWORD
bogdanm 1:0112fc45285a 16 #warning password not specified
bogdanm 1:0112fc45285a 17 #define PASSWORD NULL
bogdanm 1:0112fc45285a 18 #endif
bogdanm 1:0112fc45285a 19
bogdanm 1:0112fc45285a 20 int main()
bogdanm 1:0112fc45285a 21 {
bogdanm 1:0112fc45285a 22 UbloxUSBGSMModem modem;
bogdanm 1:0112fc45285a 23
bogdanm 1:0112fc45285a 24 notify_completion(httptest(modem, APN, USERNAME, PASSWORD));
bogdanm 1:0112fc45285a 25 }