If we know that the time is synchronized on the device (using the get-time mechanism) then Node-RED can use the time stamp from the message rather than the network time. But if we don't know that the time is valid, Node-RED should use the network time.
Hence, a bit in the uplink would be nice; or just send zero if we haven't yet synchronized. (Node-RED would then just use the network time as at present if the timestamp is zero.) We'd probably have to change the uplink format byte from 0x22 to something else... or different port number.
@terrillmoore have added new uplink port for data format to know if RTC has been set using Network Time. Would like to have your approval on data format.
If we know that the time is synchronized on the device (using the get-time mechanism) then Node-RED can use the time stamp from the message rather than the network time. But if we don't know that the time is valid, Node-RED should use the network time.
Hence, a bit in the uplink would be nice; or just send zero if we haven't yet synchronized. (Node-RED would then just use the network time as at present if the timestamp is zero.) We'd probably have to change the uplink format byte from 0x22 to something else... or different port number.
Need to decide and document.