Hi all
there is a rejoin logic in HA1.2.2a
i set the rejoin backoff :30minutes and rejoin scan as:3 minutes
i want to let the ZED out of Rejoin back off when a key press , i add those code
if (keypress)
{
if(zclVibration_NwkState == DEV_NWK_BACKOFF)
{
// set the device rejoining right now
ZDApp_ChangeState(DEV_NWK_DISC);
ZDApp_StartJoiningCycle();
osal_start_timerEx( ZDAppTaskID, ZDO_REJOIN_BACKOFF, zgDefaultRejoinScan );
}
}
sometimes it seems work, but sometimes it doesn't make any sense ~~~~
is that ok change the device state in APP ??
BR!