mcci-catena / mcci-catena-4430

Library for MCCI Catena 4430 PIR/storage Feather wing
MIT License
1 stars 3 forks source link

Need a flag to say (in uplinks) that the time is synchronized #29

Open terrillmoore opened 2 years ago

terrillmoore commented 2 years ago

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.

dhineshkumarmcci commented 2 years ago

@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.