Squashed 'tmk_core/' changes from 7967731..b9e0ea0
b9e0ea0 Merge commit '7fa9d8bdea3773d1195b04d98fcf27cf48ddd81d' as 'tool/mbed/mbed-sdk' 7fa9d8b Squashed 'tool/mbed/mbed-sdk/' content from commit 7c21ce5 git-subtree-dir: tmk_core git-subtree-split: b9e0ea08cb940de20b3610ecdda18e9d8cd7c552
This commit is contained in:
@ -0,0 +1,35 @@
|
||||
#include "UbloxUSBGSMModem.h"
|
||||
#include "UbloxUSBCDMAModem.h"
|
||||
#include "httptest.h"
|
||||
|
||||
#if !defined(MODEM_UBLOX_GSM) && !defined(MODEM_UBLOX_CDMA)
|
||||
#warning No modem defined, using GSM by default
|
||||
#define MODEM_UBLOX_GSM
|
||||
#endif
|
||||
|
||||
#ifndef MODEM_APN
|
||||
#warning APN not specified, using "internet"
|
||||
#define MODEM_APN "internet"
|
||||
#endif
|
||||
|
||||
#ifndef MODEM_USERNAME
|
||||
#warning username not specified
|
||||
#define MODEM_USERNAME NULL
|
||||
#endif
|
||||
|
||||
#ifndef MODEM_PASSWORD
|
||||
#warning password not specified
|
||||
#define MODEM_PASSWORD NULL
|
||||
#endif
|
||||
|
||||
int main()
|
||||
{
|
||||
#ifdef MODEM_UBLOX_GSM
|
||||
UbloxUSBGSMModem modem;
|
||||
#else
|
||||
UbloxUSBCDMAModem modem(p18, true, 1);
|
||||
#endif
|
||||
httptest(modem, MODEM_APN, MODEM_USERNAME, MODEM_PASSWORD);
|
||||
while (true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user