]>
git.gir.st - tmk_keyboard.git/blob - tmk_core/tool/mbed/mbed-sdk/libraries/tests/net/cellular/sms/common/smstest.cpp
1 #include "CellularModem.h"
4 void smstest(CellularModem
& modem
)
9 #ifdef DESTINATION_NUMBER
10 modem
.sendSM(DESINATION_NUMBER
, "Hello from mbed:)");
18 int ret
= modem
.getSMCount(&count
);
21 printf("getSMCount returned %d\n", ret
);
27 printf("%d SMS to read\n", count
);
28 ret
= modem
.getSM(num
, msg
, 64);
31 printf("getSM returned %d\n", ret
);
36 printf("%s : %s\n", num
, msg
);