Skip to main content
Associate II
Mar 7, 2025 12:40 PM UTC
Solved

STM32 Matter Corresponding files for PluginApplicationCallbacks.h

Hello, 

I am trying to implement a BMP 280 with matter. The project is to send the measured temperature back into matter and display on the home app on iPhone. At the end of 1.2.2.5 matter develop and prototype document, it mentioned to check if for each callback in the .h file, the corresponding folder should be added to the CUBE IDE. I have two callbacks in the .h file that I couldn't find a corresponding folder.

The first one is: 

MatterTemperatureMeasurementPluginServerInitCallback();

The second one is:

MatterBindingPluginServerInitCallback();
I am wondering if there's any suggestions on where else I can find the corresponding files, and if there aren't corresponding folders available how would I write my own folders.

Thanks
Brady
This topic has been closed for replies.
OuadiBest answer
ST Technical Moderator
Mar 12, 2025 9:05 AM UTC

Hi @bradyc17,

Temperature measurement cluster is implemented by default in the SDK Matter with all attributes, no need to add a folder for it.

Regards, Ouadi

4 replies

ST Technical Moderator
Mar 11, 2025 11:41 AM UTC

Hi @bradyc17 ,

Please find below my answer to your questions :

1- MatterTemperatureMeasurementPluginServerInitCallback() is already defined in the file ..\Middlewares\connectedhomeip\src\app\util\util.cpp as it does not have a cluster implementation, so you have nothing to do.

2-MatterBindingPluginServerInitCallback() is defined inside the cluster ..\Middlewares\Third_Party\connectedhomeip\src\app\clusters, you have to include the folder in your project.

Best regards,

Ouadi

bradyc17Author
Associate II
Mar 11, 2025 1:36 PM UTC

Hello @Ouadi 

Thanks for getting back to me!
I am wondering if you can explain a bit more about "cluster implementation". From my understanding is that cluster is basically the functionalities of an endpoint. For example, one of the cluster of BMP 280 will be measuring temperature. 
Second I am curious how come the BMP 280 does not need a cluster implementation?

 

Thanks

Brady 

OuadiBest answer
ST Technical Moderator
Mar 12, 2025 9:05 AM UTC

Hi @bradyc17,

Temperature measurement cluster is implemented by default in the SDK Matter with all attributes, no need to add a folder for it.

Regards, Ouadi