]> git.gir.st - tmk_keyboard.git/blob - tool/mbed/mbed-sdk/libraries/tests/net/cellular/http/ubloxusb/main.cpp
Squashed 'tmk_core/' changes from 7967731..b9e0ea0
[tmk_keyboard.git] / tool / mbed / mbed-sdk / libraries / tests / net / cellular / http / ubloxusb / main.cpp
1 #include "UbloxUSBGSMModem.h"
2 #include "UbloxUSBCDMAModem.h"
3 #include "httptest.h"
4
5 #if !defined(MODEM_UBLOX_GSM) && !defined(MODEM_UBLOX_CDMA)
6 #warning No modem defined, using GSM by default
7 #define MODEM_UBLOX_GSM
8 #endif
9
10 #ifndef MODEM_APN
11 #warning APN not specified, using "internet"
12 #define MODEM_APN "internet"
13 #endif
14
15 #ifndef MODEM_USERNAME
16 #warning username not specified
17 #define MODEM_USERNAME NULL
18 #endif
19
20 #ifndef MODEM_PASSWORD
21 #warning password not specified
22 #define MODEM_PASSWORD NULL
23 #endif
24
25 int main()
26 {
27 #ifdef MODEM_UBLOX_GSM
28 UbloxUSBGSMModem modem;
29 #else
30 UbloxUSBCDMAModem modem(p18, true, 1);
31 #endif
32 httptest(modem, MODEM_APN, MODEM_USERNAME, MODEM_PASSWORD);
33 while (true);
34 }
35
Imprint / Impressum