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

Revision:
1:99621cbfd365
Parent:
0:09b29e397b70
Child:
2:5871ac93eab3
--- a/main.cpp	Sat Feb 01 20:01:08 2020 +0000
+++ b/main.cpp	Wed Feb 05 15:54:32 2020 +0000
@@ -1,12 +1,28 @@
 #include "mbed.h"
-
-DigitalOut myled(LED1);
+Serial device(PA_2,PA_3);
 
-int main() {
-    while(1) {
-        myled = 1;
-        wait(0.2);
-        myled = 0;
-        wait(0.2);
-    }
+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);
 }
+}
\ No newline at end of file