Source code Section A-2

Dependencies:   mbed Nucleo_Sensor_Shield

Files at this revision

API Documentation at this revision

Comitter:
selvakumararm
Date:
Wed Jan 30 03:03:58 2019 +0000
Parent:
2:28f8cd15fca4
Commit message:
IoT Exam Jan 2019

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 28f8cd15fca4 -r 53d2d440a695 main.cpp
--- a/main.cpp	Tue Apr 10 02:48:03 2018 +0000
+++ b/main.cpp	Wed Jan 30 03:03:58 2019 +0000
@@ -11,10 +11,9 @@
 Ticker update;
 
 volatile float TEMPERATURE_C;
-volatile float TEMPERATURE_F;
-volatile float TEMPERATURE_K;
-volatile float HUMIDITY;
-volatile float PRESSURE;
+
+<<<<<<<<Declarations should be here >>>>>>>>>>
+
 
 bool measurements_update = false;
 
@@ -40,11 +39,11 @@
         if(measurements_update == true){
         /* Read the environmental sensors  */
         
-            <your code should be here>
+            <<<<<<<<    your code should be here    >>>>>>>>>>
             
         
         pc.printf("Temperature:\t %.2f C / %.2f F / %.2f K\r\n", TEMPERATURE_C, TEMPERATURE_F, TEMPERATURE_K);
-        pc.printf("Humidity:\t %.2f%%\r\n", HUMIDITY);
+       
     
 
         pc.printf("\r\n");