Matter #11535
Unanswered
tv4you2016
asked this question in
Q&A
Matter
#11535
Replies: 1 comment
-
@SuGlider Can you help with the question? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @SuGlider
I know this problem has nothing to do with you, but GURU is GURU, maybe you can help me!! 😄
I used this example:
https://github.com/espressif/arduino-esp32/blob/master/libraries/Matter/examples/MatterComposedLights/MatterComposedLights.ino
and a question arose:
Let's suppose I have a dynamic list where I can receive up to 30 MatterOnOffLight , I will have to create it 30 times
bool setLightOnOff3(bool state) {
Serial.printf("Light3 changed state to: %s\r\n", state ? "ON" : "OFF");
return true;
}
Is there a way to use the same callback and check which endpoint it comes from?
Beta Was this translation helpful? Give feedback.
All reactions