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.

如何实现ZHA例程samplelight和sampleswitch的上电自组网,而非EZMODE方式

目的:实现ZHA例程samplelight和sampleswitch上电后自动组网,而非EZMODE方式。

我将samplelight例程设为协调器,sampleswitch例程设为终端,编译时均取消Zcl-Ezmode 和 Hold-Auto-Start (即 xZcl_Ezmode 和 xHold_Auto_Start)。发现LED1一直亮(说明成功取消EZMODE)。但是switch终端模块的按键SW_2不能控制light模块上的LED2。 通过设断点做调试,发现switch模块没有发现合适的网络入网,说明switch和light没有成功自组网。

请教高手们,我应该如修改例程,来实现samplelight和sampleswitch上电后自动组网,并且switch可以远程控制light呢?