cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 Matter Corresponding files for PluginApplicationCallbacks.h

bradyc17
Associate II

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
1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

4 REPLIES 4
Ouadi
ST Employee

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

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 

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

Hi @Ouadi 

Got it! Thanks for helping me out!
I've another question about files unable to open in Cube IDE after renaming the project in Cube IDE. I've tagged you in the post, hopefully you can give me some insight about it!

Thanks
Brady