Skip to content

Commit

Permalink
start rejoin again on rejoin failure
Browse files Browse the repository at this point in the history
  • Loading branch information
devbis committed Oct 30, 2023
1 parent 6b26e0b commit 0312326
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/zb_appCb.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,15 +186,17 @@ void zbdemo_bdbCommissioningCb(u8 status, void *arg){
break;
case BDB_COMMISSION_STA_BINDING_TABLE_FULL:
break;
case BDB_COMMISSION_STA_NO_SCAN_RESPONSE:
break;
case BDB_COMMISSION_STA_NOT_PERMITTED:
break;
case BDB_COMMISSION_STA_NO_SCAN_RESPONSE:
case BDB_COMMISSION_STA_PARENT_LOST:
//zb_rejoinSecModeSet(REJOIN_INSECURITY);
zb_rejoinReq(zb_apsChannelMaskGet(), g_bdbAttrs.scanDuration);
zb_rejoinReqWithBackOff(zb_apsChannelMaskGet(), g_bdbAttrs.scanDuration);
break;
case BDB_COMMISSION_STA_REJOIN_FAILURE:
if(!zb_isDeviceFactoryNew()){
zb_rejoinReqWithBackOff(zb_apsChannelMaskGet(), g_bdbAttrs.scanDuration);
}
break;
default:
break;
Expand Down

0 comments on commit 0312326

Please sign in to comment.