
iot_water_monitor_v2
Dependencies: easy-connect-v16 Watchdog FP MQTTPacket RecordType-v-16 watersenor_and_temp_code
Application/CommandExecution.cpp@36:d0b628087ac8, 2018-02-14 (annotated)
- Committer:
- DuyLionTran
- Date:
- Wed Feb 14 14:45:35 2018 +0000
- Revision:
- 36:d0b628087ac8
- Parent:
- 35:fc800d35c1ba
- Child:
- 39:a5ee98bd0050
* version 2.6 02-14-2017: DO Sensor added, calibration is still on the way
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
DuyLionTran | 32:8226837c56ae | 1 | #include "CommandExecution.h" |
DuyLionTran | 32:8226837c56ae | 2 | #include "mbed.h" |
DuyLionTran | 32:8226837c56ae | 3 | |
DuyLionTran | 32:8226837c56ae | 4 | DigitalOut relay1(RELAY_1_PIN); |
DuyLionTran | 32:8226837c56ae | 5 | DigitalOut relay2(RELAY_2_PIN); |
DuyLionTran | 34:601effb7b7fe | 6 | DigitalOut relay3(RELAY_3_PIN); |
DuyLionTran | 32:8226837c56ae | 7 | |
DuyLionTran | 34:601effb7b7fe | 8 | void CE_HandleRelays(int Relay1State, int Relay2State, int Relay3State) { |
DuyLionTran | 32:8226837c56ae | 9 | relay1 = Relay1State; |
DuyLionTran | 32:8226837c56ae | 10 | relay2 = Relay2State; |
DuyLionTran | 34:601effb7b7fe | 11 | relay3 = Relay3State; |
DuyLionTran | 32:8226837c56ae | 12 | } |
DuyLionTran | 35:fc800d35c1ba | 13 | |
DuyLionTran | 35:fc800d35c1ba | 14 | void CE_SetRTCTime(uint32_t CurrentEpochTime) { |
DuyLionTran | 36:d0b628087ac8 | 15 | printf("New local time value set\r\n"); |
DuyLionTran | 35:fc800d35c1ba | 16 | set_time(CurrentEpochTime); |
DuyLionTran | 35:fc800d35c1ba | 17 | } |