Skip to main content
Associate II
March 7, 2025
Solved

STM32 Matter Corresponding files for PluginApplicationCallbacks.h

  • March 7, 2025
  • 1 reply
  • 1280 views

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
Best answer by Ouadi

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

1 reply

Technical Moderator
March 11, 2025

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
March 11, 2025

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
Technical Moderator
March 12, 2025

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