Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of GSM_Library by
Diff: main.cpp
- Revision:
- 7:6c0b6ab3cafe
- Parent:
- 0:41904adca656
- Child:
- 12:f3ccc43c4d3c
--- a/main.cpp Thu Mar 05 21:50:30 2015 +0000 +++ b/main.cpp Thu Mar 05 23:12:09 2015 +0000 @@ -5,10 +5,21 @@ int index=0; Serial pc(USBTX, USBRX); Serial gsm(PTC17,PTC16); +Ticker tick1; + +void tick_out(){ + gsm_tick(); +} int main() { gsm.baud(115200); + tick1.attach(&tick_out, 1); + gsm_initialize(); + while(1){ + wait(.8); + gsm_send_sms(); + } return 0; } \ No newline at end of file