Tool/software: Code Composer Studio
SDK version :simplelink_zigbee_sdk_plugin_2_20_00_06
I use ZC_GenericApp and ZR_GenericApp to test BDB Reporting.
I add below code in zclGenericApp_ProcessIncomingMsg.
static uint8 zclGenericApp_ProcessIncomingMsg( zclIncoming_t *pInMsg )
{
uint8 handled = FALSE;
switch ( pInMsg->hdr.commandID )
{
#ifdef ZCL_READ
case ZCL_CMD_READ_RSP:
zclGenericApp_ProcessInReadRspCmd( pInMsg );
handled = TRUE;
break;
#endif
#ifdef ZCL_WRITE
case ZCL_CMD_WRITE_RSP:
zclGenericApp_ProcessInWriteRspCmd( pInMsg );
handled = TRUE;
break;
#endif
case ZCL_CMD_CONFIG_REPORT:
case ZCL_CMD_CONFIG_REPORT_RSP:
case ZCL_CMD_READ_REPORT_CFG:
case ZCL_CMD_READ_REPORT_CFG_RSP:
case ZCL_CMD_REPORT:
bdb_ProcessIncomingReportingMsg( pInMsg );
handled = TRUE;
break;
static uint8 bdb_ProcessIncomingReportingMsg( zclIncoming_t *pInMsg )
{
zclReportCmd_t *pInTempSensorReport;
pInTempSensorReport = (zclReportCmd_t *)pInMsg->attrCmd;
if ( pInTempSensorReport->attrList[0].attrID == ATTRID_POWER_CFG_BATTERY_PERCENTAGE_REMAINING )
{
Board_Led_toggle ( board_led_type_LED1 );
}
return ( TRUE );
}
But it no effect, please help me.
https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/158/1.7z