![](/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
Diff: Sampler.hpp
- Revision:
- 12:4c7eaac8ceef
- Parent:
- 8:7d218affea71
--- a/Sampler.hpp Thu Dec 13 15:46:07 2018 +0000 +++ b/Sampler.hpp Mon Dec 31 19:20:22 2018 +0000 @@ -4,6 +4,7 @@ #include "LCD.hpp" #include "SerialComms.hpp" #include "sample_hardware.hpp" +#include "SDcard.hpp" #define Activate_Flag 1 class Sampler @@ -16,9 +17,10 @@ void publishSample() { sample_message message = getData(); - m_oDisplay.LCD_Queue.call(&m_oDisplay, &LCD_Data::update_sensor_info, message); - m_oSerial.SERIAL_Queue.call(&m_oSerial, &Serialcomms::setsampledata, message); - //SD_Queue.call(&m_oSD_data, &SD_Queue::update_sensor_info, sample_data, sample_data); + m_oDisplay.LCD_Queue.call(&m_oDisplay, &LCD_Data::update_sensor_info, message); //Send sensor information to LCD via putting update_sensor_info function onto LCD queue with structure as input + m_oSerial.SERIAL_Queue.call(&m_oSerial, &Serialcomms::setsampledata, message); //Send sensor information to Serial via putting setsampledata function onto Serial queue with structure as input + m_oNet.Network_Queue.call(&m_oNet, &Network::update_sensor_info, message); //Send sensor information to Network via putting update_sensor_info function onto Network queue with structure as input + m_oSD.SDcard_Queue.call(&m_oSD, &SDcard::update_sensor_info, message); //Send sensor information to SD card via putting update_sensor_info function onto SD card queue with structure as input } sample_message getData()