Matter #11535
Replies: 3 comments 5 replies
-
@SuGlider Can you help with the question? |
Beta Was this translation helpful? Give feedback.
-
Yes, there are many ways to make it work: 1- Creating a new Class that heritages from MatterOnOffLight Class with the proper code for the callback. |
Beta Was this translation helpful? Give feedback.
-
The availalbe release of the Arduino Core for the IDE offers the Arduino Matter library as a pre-compiled binary code with a limit of 16 endpoints, including mandatory EP 0. Therefore, if the application needs to create more endpoints, it will require it to be built using Arduino as IDF Component and changing the sdkconfig file to set the necessary quantity of endpoints. Another option would be using Arduino Lib Builder project to build a new Arduino Matter Library with a higher number of endpoints, also changing the sdkconfig settings. More endpoints require more SRAM and a bigger firmware size. |
Beta Was this translation helpful? Give feedback.
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