MCPcopy Create free account
hub / github.com/SmingHub/Sming / onPrintSystemTime

Function onPrintSystemTime

samples/SystemClock_NTP/app/application.cpp:48–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46// ntpClientDemo dm1;
47
48void onPrintSystemTime()
49{
50 Serial << _F("Local Time: ") << SystemClock.getSystemTimeString(eTZ_Local) << _F(", UTC Time: ")
51 << SystemClock.getSystemTimeString(eTZ_UTC) << endl;
52}
53
54// Called when time has been received by NtpClient (option 1 or 2)
55// Either after manual requestTime() or when

Callers

nothing calls this directly

Calls 1

getSystemTimeStringMethod · 0.80

Tested by

no test coverage detected