Gbox 4.20
Grow box automation and monitoring - <a href='https://sites.google.com/site/growboxguy/'>https://sites.google.com/site/growboxguy/</a>
 
Loading...
Searching...
No Matches
ELClientCmd.cpp
Go to the documentation of this file.
1
7// Copyright (c) 2016 by B. Runnels and T. von Eicken
8
9#include "ELClientCmd.h"
10
15
32 _elc->Request(CMD_GET_TIME, 0, 0);
33 _elc->Request();
34
35 ELClientPacket *pkt = _elc->WaitReturn();
36 return pkt ? pkt->value : 0;
37}
38
Definitions for ELClientCmd.
@ CMD_GET_TIME
Definition ELClient.h:26
uint32_t GetTime()
Get time from ESP.
ELClientCmd(ELClient *elc)
Constructor for ELClientCmd.
void Request(uint16_t cmd, uint32_t value, uint16_t argc)
Start a request.
Definition ELClient.cpp:211
ELClientPacket * WaitReturn(uint32_t timeout=ESP_TIMEOUT)
Wait for a response from ESP for a given timeout.
Definition ELClient.cpp:444
uint32_t value