mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
1bb844c842
commit
8aaa1b76a6
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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"]),
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue