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.54k stars 2.03k forks source link

[trivial] #36574

Open aravindone opened 5 days ago

aravindone commented 5 days ago

Type

Other

Explanation

need to know how the command works in code ,do we have any API for that ? my need is to detect the command received from controller for on and off cluster and to execute my function. and i can see whether i can do on same firmware for turning on and off command in on-off cluster.

Platform

esp32

Platform Version(s)

1.3

Testing

Manually tested with SDK

(Optional) If manually tested please explain why this is only manually tested

No response

Anything else?

@bzbarsky-apple please comment

bzbarsky-apple commented 4 days ago

@aravindone I have no idea what you're actually asking. Commands get processed by cluster implementations, generally speaking. How that cluster then interacts with the application depends on the cluster.

So which specific command of which specific cluster are you looking at here?

aravindone commented 4 days ago

Hi @bzbarsky-apple

How that cluster then interacts with the application depends on the cluster

I want to understand this and I'm currently working in on-off Cluster in light-switch app

bzbarsky-apple commented 3 days ago

So is this a client cluster or a server cluster?

aravindone commented 3 days ago

Hi @bzbarsky-apple the The cluster in zap tool says client cluster but i need it as server cluster, when i try to activate as server and compile code im getting error which is based out of ZAP, do i need to change any file apart from Zap file

bzbarsky-apple commented 3 days ago

@aravindone The light switch app does not have a server On/Off cluster. It has a client.

It's really hard to say anything clear about your error, since you did not bother to say what exact error you got. Please attach (not paste) logs as needed.

aravindone commented 6 hours ago

Hello @bzbarsky-apple Sorry for the late reply

Here my log Light_switch_error_log.TXT

this is the Zap configuration, but in the tool it clearly mentions that on-off cluster is dedicated for Client. can i able to change it ? Screenshot from 2024-11-25 18-17-26 Screenshot from 2024-11-25 18-16-50