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 Class Reference

#include <ELClientCmd.h>

Public Member Functions

 ELClientCmd (ELClient *elc)
 Constructor for ELClientCmd.
 
uint32_t GetTime ()
 Get time from ESP.
 

Detailed Description

Definition at line 14 of file ELClientCmd.h.

Constructor & Destructor Documentation

◆ ELClientCmd()

ELClientCmd::ELClientCmd ( ELClient elc)

Constructor for ELClientCmd.

ELClientCmd(ELClient* elc)

Definition at line 14 of file ELClientCmd.cpp.

Member Function Documentation

◆ GetTime()

uint32_t ELClientCmd::GetTime ( )

Get time from ESP.

GetTime()

Time from the ESP is unformated value of seconds

Warning
If the ESP cannot connect to the NTP server or the connection NTP server is not setup, then this time is the number of seconds since the last reboot of the ESP
Returns
uint32_t current time as number of seconds
  • since Thu Jan 1 00:00:58 UTC 1970 if ESP has time from NTP
  • since last reboot of ESP if no NTP time is available
Example
uint32_t t = cmd.GetTime();
Serial.print("Time: "); Serial.println(t);
ESP esp & Serial
Definition demo.ino:9

Definition at line 31 of file ELClientCmd.cpp.

Here is the call graph for this function:

The documentation for this class was generated from the following files: