Part Number: LAUNCHXL-CC26X2R1
I want to add a second light to zed_light project. Is there an example project for this in simplelink_cc13x2_26x2_sdk_3_20_00_68?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: LAUNCHXL-CC26X2R1
I want to add a second light to zed_light project. Is there an example project for this in simplelink_cc13x2_26x2_sdk_3_20_00_68?
Just double creation and registration of the first light but assign it a new endpoint number.
https://e2e.ti.com/support/wireless-connectivity/zigbee-and-thread/f/158/t/829644
https://e2e.ti.com/support/wireless-connectivity/zigbee-and-thread/f/158/t/792650
http://dev.ti.com/tirex/explore/node?node=AHfY0Eko1oL507RS1aRYoQ__pTTHBmu__LATEST
Regards,
Ryan
So by double creation, as in https://e2e.ti.com/support/wireless-connectivity/zigbee-and-thread/f/158/t/829644 (add second light to zclSampleLight_Init in
zcl_sampleLight.c? Do zcl_samplelight_data.c and zcl_samplelight.h need to be modified? Is this how to assign endpoint number?
#define SAMPLELIGHT_ENDPOINT 8 (with different name and number)
Regards, Allen
You need to assign a new SAMPLELIGHT_ENDPOINT number and register it in zcl_samplelight.c zclSampleLight_initialization. zcl_samplelight_data.c will need to include a new attribute list and simple descriptor to differentiate between endpoint functions and callbacks.
Regards,
Ryan