Other Parts Discussed in Thread: Z-STACK
I have a temperature sensor and i want to be able to correctly update the reporting time, as desired by the customer via reporting configuration time sent from Home Assistant. If i understand the issue correctly, when i set a new value for reporting time from Home Assistant, that coordinator will issue a Configure Reporting Command with the payload as described by the documentation. Presuming i'm not wrong, i ought to receive this command, unpack the payload and update my internal variables, and then issue a Configure Reporting Command Response back to the stack. Am i wrong?
I tried doing this and, within zclSampleTemperatureSensor_processZStackMsgs i added a new case with zstackmsg_CmdIDs_BDB_REP_ADD_ATTR_CFG_RECORD_DEFAULT_TO_LIST_REQ hoping to cast the incoming message to zstackmsg_bdbRepAddAttrCfgRecordDefaultToListReq_t so i could have access to zstack_bdbRepAddAttrCfgRecordDefaultToListReq_t where repoting times are available. However, it seems that a breakpoint in zstackmsg_CmdIDs_BDB_REP_ADD_ATTR_CFG_RECORD_DEFAULT_TO_LIST_REQ does not trigger, seemingly not being the correct stack message to receive a Configure Reporting Command.
How can i correctly process the incoming Configure Reporting Command, decode the reporting times and issue a Configure Reporting Command Response back to the stack?
Also, in a generic sense, what is the procedure to issue responses to commands?