transferir datos de un pc a otro por medio de bluetooth

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
JLN_03
Date:
Mon Oct 07 12:29:50 2019 +0000
Commit message:
transferencia de datos por bluetooth

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r f2e8e03b25fb main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Oct 07 12:29:50 2019 +0000
@@ -0,0 +1,24 @@
+#include "mbed.h"
+#include "stdio.h"
+#include "string.h"
+using namespace std;
+              
+Serial BLU (PB_6,PA_10);    //(TX - RX);
+//Serial ESCLAVO (PB_2, PB_3);
+Serial PUERTO(USBTX,USBRX);
+
+char DATO1[30];
+char DATO2[30];
+
+int main(){
+     while(1){
+         
+             if(PUERTO.readable()){                
+                BLU.putc(PUERTO.getc());
+                }
+             if(BLU.readable()){                
+                PUERTO.putc(BLU.getc());
+                }
+                //wait_ms(500);  
+    }
+}
\ No newline at end of file
diff -r 000000000000 -r f2e8e03b25fb mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Oct 07 12:29:50 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file