Alix Germany / Mbed OS Coursework_Version_8

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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers messageStruct.hpp Source File

messageStruct.hpp

00001 #include "mbed.h"
00002 #include <stdio.h>
00003 #include <string>
00004 
00005 typedef struct 
00006 {
00007     double temp;
00008     double pressure;
00009     double ldr;
00010 } sample_message;
00011 
00012 extern sample_message msg;
00013 
00014 
00015 typedef struct //structure used to store time and date info that is sent between LCD class and serial communcations
00016 {
00017    string day; //current day, mon - sun
00018    string month; //current month, jan - dec
00019    string date; //current date, 1-31
00020    string time; //current time SS:MM:HH
00021    string year; //current year 1970 - 2035?
00022    
00023    string current_time; //all of the above in one string, day month  date time year
00024     
00025 } time_and_date;
00026 
00027 extern time_and_date Timemsg;