Este es una programa para la transferencia de archivos entre la 2 sistemas embeded

Dependencies:   mbed

https://os.mbed.com/media/uploads/javierdavid2006/f084236d-f318-4560-8f2c-ad359a3940ad.jpg https://os.mbed.com/media/uploads/javierdavid2006/be47402f-b641-449b-bb02-1125b19db3f8.jpg https://os.mbed.com/media/uploads/javierdavid2006/009696aa-0612-41b1-ac80-ad8b4b370af7.jpg https://os.mbed.com/media/uploads/javierdavid2006/2759b22c-fe7b-449e-b3c8-567f08c87794.jpg

main.cpp

Committer:
javierdavid2006
Date:
2020-02-05
Revision:
1:99621cbfd365
Parent:
0:09b29e397b70
Child:
2:5871ac93eab3

File content as of revision 1:99621cbfd365:

#include "mbed.h"
Serial device(PA_2,PA_3);

int main()
{
    device.baud(19200);
    wait(1);
    
    
while(1) {
device.printf( "AT \n\r" ); // en el comando para enviar sms 
wait(1);
device.printf( "AT + CMGF = 1 \n\r" ); // en el comando para enviar sms 
wait_ms ( 100 );

wait_ms ( 100 );   
device.printf( "AT + CMGS =" );
//device.putc( '"' );
device.printf( "0983322199" ); 
//device.putc( '"' );
device. printf ( "\n\r" );
wait(1);
device.printf( "Mensaje de ejemplo SMS \n\r" );
wait(1);
device.putc( 0x1A );
wait(1);
}
}