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.