@Ricardo_Zamora I was trying to add an endpoint.
What I want to acheive:
- Use JN-AN-1247-Zigbee-3-0-IoT-Control-Bridge AppNote as a Router with three ON_OFF Loghts connected
- Endpoint 1 will be as it is , EP 4,5 and 6 will be lights with clusters ( scenes , groups, on off and identify) implemented on each
What I Have done so far:
- Added the three Endpoints to the zpscfg file.
- Modified the ZclOptions.h to include the ON/OFF server cluster and reflect the endpoint counts.
- Modified the tsCLD_ZllDeviceTable sDeviceTable to refelct the 3 new endpoints.
- Call eZLO_RegisterOnOffLightEndPoint for the 3 new endpoints.
Problem:
So after all the above , the endpoints are implemented and I can send ON/OFF commands and get the Attribute Read responses but with One issue. If the source endpoint is not same as the destination endpoint I dont see any responses. Only if the source and destination endpoints are same then I can recieve teh ON/OFF command or the Read attribute
tsZLO_ControlBridgeDevice sControlBridge;
tsZLO_OnOffLightDevice sOnOFFLight[3];
tsCLD_ZllDeviceTable sDeviceTable = { ZLO_NUMBER_DEVICES, //3+1
{ { 0,
ZLO_PROFILE_ID,
CONTROL_BRIDGE_DEVICE_ID,
CONTROLBRIDGE_ZLO_ENDPOINT, //1
2,
GROUPS_REQUIRED,
0
}
,{ 0,
ZLO_PROFILE_ID,
ON_OFF_LIGHT_DEVICE_ID,
CONTROLBRIDGE_LIGHT1_ENDPOINT, //4
2,
GROUPS_REQUIRED,
0
}
,{ 0,
ZLO_PROFILE_ID,
ON_OFF_LIGHT_DEVICE_ID,
CONTROLBRIDGE_LIGHT2_ENDPOINT, //5
2,
GROUPS_REQUIRED,
0
}
,{ 0,
ZLO_PROFILE_ID,
ON_OFF_LIGHT_DEVICE_ID,
CONTROLBRIDGE_LIGHT3_ENDPOINT, //6
2,
GROUPS_REQUIRED,
0
}
}
};
for (int i = 0; i < 4; i++) {
eZLO_RegisterOnOffLightEndPoint( 4+i,
fptr,
&sOnOFFLight[i] );
Where am I doing something wrong? I deally I would be able to send the requests of commands and attribute reports from Ep 1 of the control bridge as it as the ON_off client cluster