File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -192,6 +192,15 @@ unsigned long TimeService::getTimeFromString(const String& input)
192192 * PRIVATE MEMBER FUNCTIONS
193193 **************************************************************************************/
194194
195+ bool TimeService::connected ()
196+ {
197+ if (_con_hdl == nullptr ) {
198+ return false ;
199+ } else {
200+ return _con_hdl->getStatus () == NetworkConnectionState::CONNECTED;
201+ }
202+ }
203+
195204unsigned long TimeService::getRemoteTime ()
196205{
197206#include " ../../AIoTC_Config.h"
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ class TimeService
6464 unsigned long _timezone_dst_until;
6565
6666 unsigned long getRemoteTime ();
67+ bool connected ();
6768 static bool isTimeValid (unsigned long const time);
6869
6970};
You can’t perform that action at this time.
0 commit comments