Thread 中讨论的其他器件:Z-stack
你(们)好 我需要在路由器设备上实施自动调试、因此无需按下按钮即可开始调试。 我也希望它能够与 touchlink 配合使用。
请帮助我将以下伪代码转换为实际代码:
void zclMyApp_Init( byte task_id ) {
...
if ("previously connected to a coordinator or touchlink") {
bdb_StartCommissioning("rejoin");
if ("could not find the network anymore") {
bdb_StartCommissioning("join another touchlink or coordinator");
}
} else {
bdb_StartCommissioning("join touchlink or coordinator");
}
...
}