Version 8, working version with Alix, sams and ollies code. Displays time, date and sensor info onto terminal, LCD and networking, and saves onto SD card.

Dependencies:   BMP280 ELEC350-Practicals-FZ429 TextLCD BME280 ntp-client

Revision:
12:4c7eaac8ceef
Parent:
11:42b0c567cc8c
--- a/Network.hpp	Thu Dec 13 15:46:07 2018 +0000
+++ b/Network.hpp	Mon Dec 31 19:20:22 2018 +0000
@@ -95,17 +95,17 @@
 
       void update_temp(double t) //use this function to update the current temperature value 
             { 
-                temp = 5; 
+                temp = t; 
             }  
 
         void update_pressure(double p) //use this function to update the current pressure value 
             { 
-                pressure = 4;     
+                pressure = p;     
             }  
 
         void update_LDR(double L) 
             { 
-                fLDR = 3;    
+                fLDR = L;    
             } 
 
              
@@ -119,7 +119,6 @@
     //Configure an ethernet connection 
     eth.set_network(IP, NETMASK, GATEWAY); 
     eth.connect(); 
-           
     } 
   
 
@@ -173,7 +172,7 @@
 
         srv.accept(&clt_sock, &clt_addr); 
 
-        printf("accept %s:%d\n", clt_addr.get_ip_address(), clt_addr.get_port()); 
+        //printf("accept %s:%d\n", clt_addr.get_ip_address(), clt_addr.get_port()); 
 
              
 
@@ -191,9 +190,7 @@
 
         char pressure_str[64]; 
 
-         
-
-     
+        //printf("%s", time);
 
         //Convert to a C String 
 
@@ -233,7 +230,8 @@
 
         //Send static HTML response (as a C string) 
 
-        clt_sock.send(response.c_str(), response.size()+6);  
+      //  clt_sock.send(response.c_str(), response.size()+6);  
+        clt_sock.send(response.c_str(), response.size());