Skip to content

Commit 8aaa1b7

Browse files
committed
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).
1 parent 1bb844c commit 8aaa1b7

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed
Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
11
#include "UBloxUSBGSMModem.h"
22
#include "smstest.h"
33

4-
int main()
4+
void test(const void* data)
55
{
66
UbloxUSBGSMModem modem;
77

88
smstest(modem);
9+
while (true);
10+
}
11+
12+
int main()
13+
{
14+
Thread testTask(test, NULL, osPriorityNormal, 1024 * 4);
15+
DigitalOut led(LED1);
16+
17+
while (true)
18+
{
19+
led = !led;
20+
Thread::wait(1000);
21+
}
22+
return 0;
923
}
1024

workspace_tools/synch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
("CellularUSBModem", "net/cellular/CellularUSBModem"),
6464
("UbloxUSBModem", "net/cellular/UbloxUSBModem"),
6565
("UbloxModemHTTPClientTest", ["tests/net/cellular/http/common", "tests/net/cellular/http/ubloxusbgsm"]),
66+
("UbloxModemSMSTest", ["tests/net/cellular/sms/common", "tests/net/cellular/sms/ubloxusbgsm"]),
6667
)
6768

6869

0 commit comments

Comments
 (0)