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.

How to search usable channel?

    I have 2 ZC or more and 1 ZD. When ZD is power_on,how to change the ZD's channel and try to join ZC, wait for 5s.

if able to join one of the two ZC , then remember the PANID and CHANNEL, then change the ZD's channel again to search the next ZC;

if  it cannot look for a ZC and join,   then change the ZD's channel again to search the two ZC;

My question is:

1  、which functions I should invoke in where;

2、 After  the ZD have joined one of the two ZCs, I  change ZD's channel ,whether the ZD must to leave the ZC that have joined.