ROME 2 Lab5

Revision:
1:5201940a41c1
Parent:
0:893a1e710078
--- a/Main.cpp	Tue Apr 28 13:59:27 2020 +0000
+++ b/Main.cpp	Fri Jun 12 08:19:42 2020 +0000
@@ -40,7 +40,7 @@
     printf("Create ethernet interface and webserver (please wait!)...\r\n");
     
     EthernetInterface* ethernet = new EthernetInterface();
-    ethernet->set_network("169.254.20.110", "255.255.0.0", "0.0.0.0"); // configure IP address, netmask and gateway address
+    ethernet->set_network("192.168.201.44", "255.255.255.0", "169.168.201.1"); // configure IP address, netmask and gateway address
     ethernet->connect();
     
     HTTPServer* httpServer = new HTTPServer(*ethernet);
@@ -51,7 +51,13 @@
     printf("Enter main loop...\r\n");
     
     while (true) {
-        
+        Timer timer;
+        timer.start();
+        lidar.getBeacons();
+        int duration = timer.read_us();
+        printf("Zeit für getBeacons: %d \r\n",duration);
+        timer.reset();
+        ThisThread::sleep_for(100);
         // set LEDs on microcontroller
         
         ledGreen = 1;