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.
main.cpp
- Committer:
- JohnnyK
- Date:
- 2022-04-08
- Revision:
- 7:90bb5b736fe4
- Parent:
- 6:b38819d5db73
File content as of revision 7:90bb5b736fe4:
#include "mbed.h"
#include "A9G.h"
// setup
int main() {
printf("Mbed A9G test\n");
A9G a9g(PD_5,PD_6,true);
if(a9g.init()){
if(a9g.sendSMS("+123123456789", "Hello!")) printf("sendSms success\n");
else printf("sendSms failed\n");
}
else printf("module init failed\n");
// loop
while(true)
{
//do something in loop
thread_sleep_for(1000);
}
}