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.

终端如何使用zclSampleSw_CmdCallbacks 这个callback

static zclGeneral_AppCallbacks_t zclSampleSw_CmdCallbacks =
{
zclSampleSw_BasicResetCB, // Basic Cluster Reset command
NULL, // Identfiy cmd
NULL, // Identify Query command
NULL, // Identify Query Response command
NULL, // Identify Trigger Effect command
#ifdef ZCL_ON_OFF
NULL, // On/Off cluster commands
NULL, // On/Off cluster enhanced command Off with Effect
NULL, // On/Off cluster enhanced command On with Recall Global Scene
NULL, // On/Off cluster enhanced command On with Timed Off
#endif
#ifdef ZCL_LEVEL_CTRL
NULL, // Level Control Move to Level command
NULL, // Level Control Move command
NULL, // Level Control Step command
NULL, // Level Control Stop command
NULL, // Level Control Move to Closest Frequency command
#endif
#ifdef ZCL_GROUPS
NULL, // Group Response commands
#endif
#ifdef ZCL_SCENES
NULL, // Scene Store Request command
NULL, // Scene Recall Request command
NULL, // Scene Response command
#endif
NULL, // RSSI Location command
NULL // RSSI Location Response command
};

1.在终端中我是不是定义了ZCL_ON_OFF下面的四个NULL,协调器发给我ZCL_ON_OFF的消息,我这边就会触发相应的事件

2.协调器通过ZCL发送的数据,我这边的zstackmsg_CmdIDs_AF_INCOMING_MSG_IND也会触发吧?

x 出现错误。请重试或与管理员联系。