
iot_water_monitor_v2
Dependencies: easy-connect-v16 Watchdog FP MQTTPacket RecordType-v-16 watersenor_and_temp_code
Application/CommandExecution.cpp@32:8226837c56ae, 2018-01-08 (annotated)
- Committer:
- DuyLionTran
- Date:
- Mon Jan 08 18:07:56 2018 +0000
- Revision:
- 32:8226837c56ae
- Parent:
- 31:0f7ea3981668
- Child:
- 34:601effb7b7fe
version 2.1;
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 | 32:8226837c56ae | 6 | |
DuyLionTran | 32:8226837c56ae | 7 | void CE_HandleRelays(int Relay1State, int Relay2State) { |
DuyLionTran | 32:8226837c56ae | 8 | relay1 = Relay1State; |
DuyLionTran | 32:8226837c56ae | 9 | relay2 = Relay2State; |
DuyLionTran | 32:8226837c56ae | 10 | } |