Alix Germany / Mbed OS Coursework_Version_8

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

Files at this revision

API Documentation at this revision

Comitter:
O_Thom
Date:
Fri Nov 30 13:15:30 2018 +0000
Parent:
7:8664a45f5ce1
Child:
9:f5eae5211225
Commit message:
Updated. 30/11/2018;

Changed in this revision

Sampler.hpp Show annotated file Show diff for this revision Revisions of this file
SerialComms.hpp Show annotated file Show diff for this revision Revisions of this file
--- a/Sampler.hpp	Thu Nov 29 19:08:17 2018 +0000
+++ b/Sampler.hpp	Fri Nov 30 13:15:30 2018 +0000
@@ -17,8 +17,8 @@
     {
         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_oSerial.SERIAL_Queue.call(&m_oSerial, &Serialcomms::setsampledata, message);
     }
     
     sample_message getData()
--- a/SerialComms.hpp	Thu Nov 29 19:08:17 2018 +0000
+++ b/SerialComms.hpp	Fri Nov 30 13:15:30 2018 +0000
@@ -3,9 +3,9 @@
 class Serialcomms
 {
     private:
-         float fTemp;      //current temperature of sensor, updated every 15 seconds
-         float fPressure;  //current pressure of sensor, updated every 15 seconds
-         float fLDR;      //current light level from LDR, updated every 15 seconds
+         float fTemp;      //current temperature of sensor
+         float fPressure;  //current pressure of sensor
+         float fLDR;      //current light level from LDR
          
     public:
         EventQueue SERIAL_Queue;                   //Initialise the EventQueue