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:
10:eea19f8e6122
Parent:
6:b7f6e0c0f646
Child:
12:4c7eaac8ceef
--- a/messageStruct.hpp	Fri Dec 07 13:24:50 2018 +0000
+++ b/messageStruct.hpp	Thu Dec 13 15:24:22 2018 +0000
@@ -1,3 +1,7 @@
+#include "mbed.h"
+#include <stdio.h>
+#include <string>
+
 typedef struct 
 {
     double temp;
@@ -6,3 +10,18 @@
 } sample_message;
 
 extern sample_message msg;
+
+
+typedef struct
+{
+   string day; //current day, mon - sun
+   string month; //current month, jan - dec
+   string date; //current date, 1-31
+   string time; //current time SS:MM:HH
+   string year; //current year 1970 - 2035?
+   
+   string current_time; //all of the above in one string, day month  date time year
+    
+} time_and_date;
+
+extern time_and_date Timemsg;