[SYS] Add utc & unix timestamp options to SYStoMQTT and Sensor messages (#1533)

Add optional timestamps to the SYStoMQTT and modules messages
Also, the sync with the NTP time server now occurs every hour (can be defined with TimeBetweenCheckingSYS in UserConfig.h)
This commit is contained in:
ilgrank authored and GitHub committed 2023-03-17 10:49:27 -05:00
1 parent 3b4af96990
commit c8510f2605
3 files changed
+61 -16

No files matched your search

+6
View File
@@ -386,6 +386,12 @@ int lowpowermode = DEFAULT_LOW_POWER_MODE;
#ifndef simpleReceiving
# define simpleReceiving true //define false if you don't want to use old way reception analysis
#endif
#ifndef message_UTCtimestamp
# define message_UTCtimestamp false //define true if you want messages to be timestamped in ISO8601 UTC format (e.g.: "UTCtime"="2023-12-26T19:10:20Z")
#endif
#ifndef message_unixtimestamp
# define message_unixtimestamp false //define true if you want messages to have an unix timestamp (e.g.: "unixtime"=1679015107)
#endif
/*-------------DEFINE YOUR OTA PARAMETERS BELOW----------------*/
#ifndef ota_hostname