project-chip / connectedhomeip

Matter (formerly Project CHIP) creates more connections between more objects, simplifying development for manufacturers and increasing compatibility for consumers, guided by the Connectivity Standards Alliance.
https://buildwithmatter.com
Apache License 2.0
7.39k stars 1.98k forks source link

Time sync: Internal callbacks for time #31398

Open cecille opened 8 months ago

cecille commented 8 months ago

Feature description

... There are now some clusters that would like to use the time sync cluster as a way to determine if the device has wall clock time. It would be nice to allow internal code to receive callbacks for certain attribute changes and events.

This is something that may well apply external to the time cluster as well - like an internal attribute subscription.

Platform

core

Platform Version(s)

No response

Anything else?

No response

ReneJosefsen commented 8 months ago

https://github.com/project-chip/connectedhomeip/pull/30562 did add a initial mechanism for this. Maybe that can be used as a starting point.