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.45k stars 1.99k forks source link

[Feature][Darwin] Question of EventNameForID function plan #34573

Closed joonhaengHeo closed 2 months ago

joonhaengHeo commented 3 months ago

Feature description

Are there any plans to support a function that can return EventName with Event ID similar to the function below? https://github.com/project-chip/connectedhomeip/blob/13fe13ae3b61a5b9adb3b1ab8248fa3db11dddf2/src/darwin/Framework/CHIP/MTRClusterNames.h#L43C88-L43C109

Platform

darwin

Platform Version(s)

No response

Anything else?

No response

bzbarsky-apple commented 2 months ago

We could add something like this. The only reason it's not there so far is that there weren't any known use cases...

joonhaengHeo commented 2 months ago

@bzbarsky-apple I needed this, so I implemented it separately and used it. Is it okay if I contribute it?

bzbarsky-apple commented 2 months ago

@joonhaengHeo Absolutely, yes!

joonhaengHeo commented 2 months ago

@bzbarsky-apple Thanks. I upload new PR about this.