transferir datos de un pc a otro por medio de bluetooth

Dependencies:   mbed

Revision:
0:f2e8e03b25fb
--- /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