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)
192
192
* PRIVATE MEMBER FUNCTIONS
193
193
**************************************************************************************/
194
194
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
+
195
204
unsigned long TimeService::getRemoteTime ()
196
205
{
197
206
#include " ../../AIoTC_Config.h"
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ class TimeService
64
64
unsigned long _timezone_dst_until;
65
65
66
66
unsigned long getRemoteTime ();
67
+ bool connected ();
67
68
static bool isTimeValid (unsigned long const time);
68
69
69
70
};
You can’t perform that action at this time.
0 commit comments