参与:1

ZigBee 如何添加多个端点

针对方案:基于NXP JN5169+PN7120&TI CC2541全功能公寓锁方案

分享评论举报
宇宙洪荒

宇宙洪荒

傲视群雄

1 则回答

1得分


最佳解


①Add multiple endpoint 1
Add new endpoint and its input/output cluster in zpscfg, a new endpoint name DIMMABLELIGHT_LIGHT2_ENDPOINTwill be generated automatically in Zps_gen.h

②Increase HA_NUMBER_OF_ENDPOINTS by 1. For dimmable light, originally it’s 1, so increase it to 2.

③Register the new endpoint, the same callbackfunction (APP_ZCL_cbEndpointCallback) can be shared or use a new callbackfor the new endpoint callbackfunction.

④Use the new endpoint name DIMMABLELIGHT_LIGHT2_ENDPOINTfor the new register function.

1F
宇宙洪荒

宇宙洪荒

傲视群雄

我要回答