Dear Sir
OccupancySensor When changing eHA_RegisterOccupancySensorEndPoint of eApp_HA_RegisterEndpoint function to eHA_RegisterSmartPlugEndPoint in the sample project, the following error occurs.
APP Start: Switch Power Up
APP Sensor Node: APP_vInitialiseNode*
APP Sensor Node: u16AHI_PowerStatus() = 1104
APP Report: eStatusReportReload=1
APP Sensor Node: Set Sec state
APP Sensor Node: ZPS_eAplAfInitEPCR = 831cc : EEAR = deadbef1
Stack dump:
4007e78 : 00000008
4007e7c : 0009d9ff
ref source : JN-AN-1189-ZigBee-HA-Demo \ OccupancySensor
Hi Park,
I am assuming that you want to change the occupancy sensor to smart plug.
You have to make some changes like this.
const uint8 u8MyEndpoint = SMARTPLUG_PLUG_ENDPOINT;
tsHA_SmartPlugDevice sPlug;
****************************************************************************/
teZCL_Status eApp_HA_RegisterEndpoint(tfpZCL_ZCLCallBackFunction fptr)
{
return eHA_RegisterSmartPlugEndPoint(SMARTPLUG_PLUG_ENDPOINT,
fptr,
&sPlug);
}
Also, you have to change some set up the endpoint.
Example
Hope it helps.
Regards,
Mario