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
messageStruct.hpp
- Committer:
- Alix955
- Date:
- 2018-12-31
- Revision:
- 12:4c7eaac8ceef
- Parent:
- 10:eea19f8e6122
File content as of revision 12:4c7eaac8ceef:
#include "mbed.h" #include <stdio.h> #include <string> typedef struct { double temp; double pressure; double ldr; } sample_message; extern sample_message msg; typedef struct //structure used to store time and date info that is sent between LCD class and serial communcations { 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;