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.
Dear TI,
The Below code should have lenght of the name
zclGeneral_Scene_t zllSampleLight_GlobalScene = {
0, // The group ID for which this scene applies
0, // Scene ID
0, // Time to take to transition to this scene
0, // Together with transTime, this allows transition time to be specified in 1/10s
"GlobalScene", // Scene name
11, // Length of extension fields
0, // Extension fields };
It should be like
void zllSampleLight_Init( byte task_id )
{
zllSampleLight_TaskID = task_id;
//--LAKSH bug fix scene name should start with length of the name.
//initialise the Globalscene
uint8 *str;
str = "GLOBALSCENE"; //11
zllSampleLight_GlobalScene.groupID= 0;
zllSampleLight_GlobalScene.ID = 0;
zllSampleLight_GlobalScene.transTime = 0;
zllSampleLight_GlobalScene.transTime100ms = 0;
zllSampleLight_GlobalScene.name[0] = 11;
osal_memcpy(&(zllSampleLight_GlobalScene.name[1]),str,zllSampleLight_GlobalScene.name[0]);
osal_memcpy(&(zllSampleLight_GlobalScene.extField[0]),0,zllSampleLight_GlobalScene.extLen);
Eventhough by default we have const uint8 zllSampleLight_SceneNameSupport = 0;. if the user choose to set 1. Then we wont see the name.
kindly confirm.
Thanks and Regards
Lakshman,PMP,PMI-RMP
forget to add extLen to align with TI default externsion field.pls include it above( since extfield is zero actually we dont need it.)
zllSampleLight_GlobalScene.extLen = 11;
Thanks and Regards
Lakshman,PMP,PMI-RMP