
iot_water_monitor_v2
Dependencies: easy-connect-v16 Watchdog FP MQTTPacket RecordType-v-16 watersenor_and_temp_code
Diff: Application/CommandExecution.cpp
- Revision:
- 32:8226837c56ae
- Parent:
- 31:0f7ea3981668
- Child:
- 34:601effb7b7fe
--- a/Application/CommandExecution.cpp Mon Jan 08 22:09:56 2018 +0700 +++ b/Application/CommandExecution.cpp Mon Jan 08 18:07:56 2018 +0000 @@ -1,2 +1,10 @@ -#include "CommandExecution.h" -#include "mbed.h" \ No newline at end of file +#include "CommandExecution.h" +#include "mbed.h" + +DigitalOut relay1(RELAY_1_PIN); +DigitalOut relay2(RELAY_2_PIN); + +void CE_HandleRelays(int Relay1State, int Relay2State) { + relay1 = Relay1State; + relay2 = Relay2State; +}