u-blox modem SMS test
Dependencies: UbloxUSBModem mbed
main.cpp@1:f21c25203532, 2013-10-21 (annotated)
- Committer:
- bogdanm
- Date:
- Mon Oct 21 14:40:27 2013 +0300
- Revision:
- 1:f21c25203532
- Child:
- 2:7ff34ee461a3
Add missing sources.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 1:f21c25203532 | 1 | #include "UBloxUSBGSMModem.h" |
bogdanm | 1:f21c25203532 | 2 | #include "smstest.h" |
bogdanm | 1:f21c25203532 | 3 | |
bogdanm | 1:f21c25203532 | 4 | void test(const void* data) |
bogdanm | 1:f21c25203532 | 5 | { |
bogdanm | 1:f21c25203532 | 6 | UbloxUSBGSMModem modem; |
bogdanm | 1:f21c25203532 | 7 | |
bogdanm | 1:f21c25203532 | 8 | smstest(modem); |
bogdanm | 1:f21c25203532 | 9 | while (true); |
bogdanm | 1:f21c25203532 | 10 | } |
bogdanm | 1:f21c25203532 | 11 | |
bogdanm | 1:f21c25203532 | 12 | int main() |
bogdanm | 1:f21c25203532 | 13 | { |
bogdanm | 1:f21c25203532 | 14 | Thread testTask(test, NULL, osPriorityNormal, 1024 * 4); |
bogdanm | 1:f21c25203532 | 15 | DigitalOut led(LED1); |
bogdanm | 1:f21c25203532 | 16 | |
bogdanm | 1:f21c25203532 | 17 | while (true) |
bogdanm | 1:f21c25203532 | 18 | { |
bogdanm | 1:f21c25203532 | 19 | led = !led; |
bogdanm | 1:f21c25203532 | 20 | Thread::wait(1000); |
bogdanm | 1:f21c25203532 | 21 | } |
bogdanm | 1:f21c25203532 | 22 | return 0; |
bogdanm | 1:f21c25203532 | 23 | } |
bogdanm | 1:f21c25203532 | 24 |