u-blox modem SMS test
Dependencies: UbloxUSBModem mbed
main.cpp@3:289b83b35d73, 2013-10-22 (annotated)
- Committer:
- mbed_official
- Date:
- Tue Oct 22 10:30:32 2013 +0100
- Revision:
- 3:289b83b35d73
- Parent:
- 2:7ff34ee461a3
- Child:
- 4:aa8a0e9c96f2
Synchronized with git revision 07519d3bcef2825747ed35e6a425ddb949406234
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 2:7ff34ee461a3 | 1 | #include "UbloxUSBGSMModem.h" |
mbed_official | 3:289b83b35d73 | 2 | #include "UbloxUSBCDMAModem.h" |
bogdanm | 1:f21c25203532 | 3 | #include "smstest.h" |
bogdanm | 1:f21c25203532 | 4 | |
mbed_official | 3:289b83b35d73 | 5 | #if !defined(MODEM_UBLOX_GSM) && !defined(MODEM_UBLOX_CDMA) |
mbed_official | 3:289b83b35d73 | 6 | #warning No modem defined, using GSM by default |
mbed_official | 3:289b83b35d73 | 7 | #define MODEM_UBLOX_GSM |
mbed_official | 3:289b83b35d73 | 8 | #endif |
mbed_official | 3:289b83b35d73 | 9 | |
mbed_official | 3:289b83b35d73 | 10 | int main() |
bogdanm | 1:f21c25203532 | 11 | { |
mbed_official | 3:289b83b35d73 | 12 | #ifdef MODEM_UBLOX_GSM |
bogdanm | 1:f21c25203532 | 13 | UbloxUSBGSMModem modem; |
mbed_official | 3:289b83b35d73 | 14 | #else |
mbed_official | 3:289b83b35d73 | 15 | UbloxUSBCDMAModem modem(p18, true, 1); |
mbed_official | 3:289b83b35d73 | 16 | #endif |
bogdanm | 1:f21c25203532 | 17 | |
bogdanm | 1:f21c25203532 | 18 | smstest(modem); |
bogdanm | 1:f21c25203532 | 19 | while (true); |
bogdanm | 1:f21c25203532 | 20 | } |
bogdanm | 1:f21c25203532 | 21 |