u-blox modem SMS test

Dependencies:   UbloxUSBModem mbed

main.cpp

Committer:
mbed_official
Date:
2013-10-21
Revision:
2:7ff34ee461a3
Parent:
1:f21c25203532
Child:
3:289b83b35d73

File content as of revision 2:7ff34ee461a3:

#include "UbloxUSBGSMModem.h"
#include "smstest.h"

void test(const void* data)
{
    UbloxUSBGSMModem modem;

    smstest(modem);
    while (true);
}

int main()
{
    Thread testTask(test, NULL, osPriorityNormal, 1024 * 4);
    DigitalOut led(LED1);

    while (true)
    {
        led = !led;
        Thread::wait(1000);  
    }
    return 0;
}