Hello, I'm new with matter protocol and api provided with nrf connect sdk 5.
I worked with zap to describe end point and select all the culster i want to implemented.
My application is working well but in the root node i have to specify in the devicetypelist attribute of descriptor cluster that powersource cluster is present. (useful to tell client that they can have access to battery information).
By default the list contain only the root id 0x0016 with revision 1.
I try to modify this by using const EmberAfDeviceType PowerSourceDeviceTypes[] ={{0x0016,1},{0x0011,1}}; and emberAfSetDeviceTypeList(0, (Span<const EmberAfDeviceType>(PowerSourceDeviceTypes,2)));
The result is that i can see that the devicetypelist is growing to two but the value of the data type and revision are incorrected. This values take teh maximum value 0xffff abd 0xff.
I found that the chip::app::Clusters::Descriptor::Structs::DeviceTypeStruct exist but i didn't know are to use it. I didn't see anything in the endpoint_config.h file (generated by zap) to modify to do what i want.
What am I missing to do or am i doing wrong ?