![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
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-13
- Revision:
- 10:eea19f8e6122
- Parent:
- 6:b7f6e0c0f646
- Child:
- 12:4c7eaac8ceef
File content as of revision 10:eea19f8e6122:
#include "mbed.h" #include <stdio.h> #include <string> typedef struct { double temp; double pressure; double ldr; } 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;