gbgfa

Dependencies:   mbed-rtos mbed EthernetInterface WebSocketClient

Files at this revision

API Documentation at this revision

Comitter:
ABuche
Date:
Sun Feb 12 22:46:17 2017 +0000
Parent:
0:1be517779135
Child:
2:63e05b3b6938
Commit message:
rtgg

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sun Feb 12 22:19:36 2017 +0000
+++ b/main.cpp	Sun Feb 12 22:46:17 2017 +0000
@@ -29,7 +29,7 @@
     char ah;
 } address;
 
-address addresses[3];
+address addresses[2];
 char addressCounter = 0;
 
 Queue<message, 25> queue;
@@ -83,12 +83,13 @@
                 pc.printf("New address: %02x %02x", addresses[addressCounter].ah, addresses[addressCounter].al);
                 addressCounter++;
             }
-            
-            //pc.printf("%02x ", msg->msg[15]);  
+            /*
+            pc.printf("%02x ", msg->msg[15]);  
             for(int i = 15; i < msg->msg[2] + 3;i++){
                 pc.printf("%02x ", msg->msg[i]);                
             }
             pc.printf("\r\n");
+            */
         }            
         mPool.free(msg);
     }
@@ -159,21 +160,21 @@
     for(char i = 0;i<sizeof(AT_AC);i++){
         xbee.putc(AT_AC[i]);
     }    
-    
+    /*
     Thread localThread1;
     thread1 = &localThread1;
-    thread1->start(&hotdog1);
+    thread1->start(&hotdog1);*/
+    
+    addresses[0].ah = 0x8e;
+    addresses[0].al = 0x69;
+    addressCounter++;    
     
     Ticker horloge;
     horloge.attach(&LEDSignal, 1.0);
-    
+    /*
     Thread localThread2;
     thread2 = &localThread2;
-    thread2->start(&traitement);   
-    
-    addresses[0].ah = 0x29;
-    addresses[0].al = 0x21;
-    addressCounter++;
+    thread2->start(&traitement);*/
     
     Thread localThread3;
     thread3 = &localThread3;