Duy tran / Mbed OS iot_water_monitor_v2

Dependencies:   easy-connect-v16 Watchdog FP MQTTPacket RecordType-v-16 watersenor_and_temp_code

Files at this revision

API Documentation at this revision

Comitter:
DuyLionTran
Date:
Thu Mar 22 04:14:57 2018 +0000
Parent:
51:da1f795fc7bf
Child:
53:64982aa7d08b
Commit message:
* version 2.9 03-22-2018: Watchdog worked. Some hardware bugs found

Changed in this revision

Simple-MQTT/SimpleMQTT.h Show annotated file Show diff for this revision Revisions of this file
--- a/Simple-MQTT/SimpleMQTT.h	Thu Mar 22 04:11:22 2018 +0000
+++ b/Simple-MQTT/SimpleMQTT.h	Thu Mar 22 04:14:57 2018 +0000
@@ -280,7 +280,7 @@
             			DataStruct.CONFIG_Mode   		 		= mode;   
             			DataStruct.CONFIG_OxyThreshold 		 	= OxiThres;   
             			DataStruct.CONFIG_TemperatureThreshold	= TempThres;   
-            			DataStruct.CONFIG_UploadInterval 		= uploadInterval;			
+            			DataStruct.CONFIG_UploadInterval 		= uploadInterval * 60;			
             			FP_WriteConfigValues(DataStruct.CONFIG_Mode, DataStruct.CONFIG_OxyThreshold, DataStruct.CONFIG_TemperatureThreshold, DataStruct.CONFIG_UploadInterval);  	
             			CE_SetRTCTime(setRTCTime);		
             	break;