Alix & Sam's combined versions
Dependencies: BMP280 ELEC350-Practicals-FZ429 TextLCD BME280 ntp-client
Diff: messageStruct.hpp
- Revision:
- 10:eea19f8e6122
- Parent:
- 6:b7f6e0c0f646
diff -r f5eae5211225 -r eea19f8e6122 messageStruct.hpp --- 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;