
iot_water_monitor_v2
Dependencies: easy-connect-v16 Watchdog FP MQTTPacket RecordType-v-16 watersenor_and_temp_code
Application/CommandExecution.cpp
- Committer:
- DuyLionTran
- Date:
- 2018-02-14
- Revision:
- 35:fc800d35c1ba
- Parent:
- 34:601effb7b7fe
- Child:
- 36:d0b628087ac8
File content as of revision 35:fc800d35c1ba:
#include "CommandExecution.h" #include "mbed.h" DigitalOut relay1(RELAY_1_PIN); DigitalOut relay2(RELAY_2_PIN); DigitalOut relay3(RELAY_3_PIN); void CE_HandleRelays(int Relay1State, int Relay2State, int Relay3State) { relay1 = Relay1State; relay2 = Relay2State; relay3 = Relay3State; } void CE_SetRTCTime(uint32_t CurrentEpochTime) { printf("New local time value set"); set_time(CurrentEpochTime); }