Added auto synchronization for the u-blox GSM modem test

Also changed the test to look more like the original VodafoneUSBModem SMS
test (added another thread).
pull/89/head
Bogdan Marinescu 2013-10-21 14:21:42 +03:00
parent 1bb844c842
commit 8aaa1b76a6
2 changed files with 16 additions and 1 deletions

View File

@ -1,10 +1,24 @@
#include "UBloxUSBGSMModem.h"
#include "smstest.h"
int main()
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;
}

View File

@ -63,6 +63,7 @@ OFFICIAL_CODE = (
("CellularUSBModem", "net/cellular/CellularUSBModem"),
("UbloxUSBModem", "net/cellular/UbloxUSBModem"),
("UbloxModemHTTPClientTest", ["tests/net/cellular/http/common", "tests/net/cellular/http/ubloxusbgsm"]),
("UbloxModemSMSTest", ["tests/net/cellular/sms/common", "tests/net/cellular/sms/ubloxusbgsm"]),
)