Acquisition for GNSS1A1

Dependencies:   F7_Ethernet X_NUCLEO_IKS01A2 mbed-rtos mbed

Fork of Test2Boards by Simone Mentasti

Revision:
3:0fb5321d73fb
Parent:
2:1eb73fe8ab8f
--- a/main.cpp	Fri Jan 26 09:54:13 2018 +0000
+++ b/main.cpp	Mon Oct 01 14:33:56 2018 +0000
@@ -13,9 +13,9 @@
 
 /*IP E AFFINI*/
 
-const char * IP = "169.254.112.125";
+const char * IP = "192.168.1.206";//"169.254.112.125";
 const char * MASK = "255.255.255.0";
-const char * GATEWAY = "169.254.112.1";
+const char * GATEWAY = "192.168.1.1";
 
 
 
@@ -207,9 +207,15 @@
         myled2=1;
         
         myled3=1;
+        printf ("start sending command\n");
         server.sendTo(client, buffer, n);
-        
-        
+        Teseo.SendCommand(Teseo_LIV3F::ENABLEALL);
+        Teseo.SendCommand(Teseo_LIV3F::SAVE);
+        Teseo.SendCommand(Teseo_LIV3F::REBOOT);
+        Teseo.SendCommand(Teseo_LIV3F::ENABLEALL2);
+        Teseo.SendCommand(Teseo_LIV3F::SAVE);
+        Teseo.SendCommand(Teseo_LIV3F::REBOOT);
+        printf ("ends sending command\n");
         memset (&buffer[0], '\0', sizeof(buffer));
             while (1){
                 packetnumber =packetnumber+1;
@@ -218,7 +224,7 @@
                 if (Teseo._uart.readable()) {
                     int c = Teseo._uart.getc();
                     sprintf (buffer + strlen(buffer), "%c", c);
-                    serial_debug->putc(c);
+                    //serial_debug->putc(c);
                     if (c =='\n'){
                        // sprintf (outBuffer , "%d,%s",(t.read_ms()+(offset*1000)),buffer);
                          sprintf (outBuffer , "%s",buffer);