BLEUART

Fork of 0925BLEonly by LAXAN01

Files at this revision

API Documentation at this revision

Comitter:
Tanakacool
Date:
Sat Sep 30 01:04:26 2017 +0000
Parent:
4:d1480d298d7f
Commit message:
V5

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r d1480d298d7f -r c459bdd60522 main.cpp
--- a/main.cpp	Fri Sep 29 08:51:40 2017 +0000
+++ b/main.cpp	Sat Sep 30 01:04:26 2017 +0000
@@ -83,23 +83,13 @@
          
             }
         if(((*(params->data))=='<')&&((*(params->data+1))=='E')&&((*(params->data+2))=='>')){ //  <E> 
-//        uint8_t *a; 
-//        a=longble;
-//        a+=3;
-     /*     for(uint8_t a=0;a<252;a++){
-              longble[a]=longble[a+3];
-              }*/
-              
-              uint8_t target[255]; 
-
+        uint8_t target[255]; 
         memcpy( target, longble + 3, strlen((const char*)longble) ); 
-
-        //Serial.print(strlen(target)); 
-
         pc.printf("%S\r\n",target);
-      //  pc.printf("%S\r\n",longble)  ;
-       // pc.printf("%d\r\n",(sizeof(longble)))  ; 
+        //  pc.printf("%S\r\n",longble)  ;
+        // pc.printf("%d\r\n",(sizeof(longble)))  ; 
         }
+        
         uint8_t blein[params->len];       
         for(uint8_t count=0 ; count<((params->len)) ; ++count){   //取得藍芽資料
             blein[count]= *((params->data)+count);