u-blox modem HTTP client test

Dependencies:   UbloxUSBModem mbed

main.cpp

Committer:
bogdanm
Date:
2013-10-18
Revision:
1:0112fc45285a
Child:
2:90109b8848e5

File content as of revision 1:0112fc45285a:

#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));
}