u-blox modem HTTP client test
Dependencies: UbloxUSBModem mbed
main.cpp
00001 #include "UbloxUSBGSMModem.h" 00002 #include "UbloxUSBCDMAModem.h" 00003 #include "httptest.h" 00004 00005 #if !defined(MODEM_UBLOX_GSM) && !defined(MODEM_UBLOX_CDMA) 00006 #warning No modem defined, using GSM by default 00007 #define MODEM_UBLOX_GSM 00008 #endif 00009 00010 #ifndef MODEM_APN 00011 #warning APN not specified, using "internet" 00012 #define MODEM_APN "internet" 00013 #endif 00014 00015 #ifndef MODEM_USERNAME 00016 #warning username not specified 00017 #define MODEM_USERNAME NULL 00018 #endif 00019 00020 #ifndef MODEM_PASSWORD 00021 #warning password not specified 00022 #define MODEM_PASSWORD NULL 00023 #endif 00024 00025 int main() 00026 { 00027 #ifdef MODEM_UBLOX_GSM 00028 UbloxUSBGSMModem modem; 00029 #else 00030 UbloxUSBCDMAModem modem(p18, true, 1); 00031 #endif 00032 httptest(modem, MODEM_APN, MODEM_USERNAME, MODEM_PASSWORD); 00033 while (true); 00034 } 00035
Generated on Tue Jul 12 2022 14:33:52 by 1.7.2