Skip to content

Commit

Permalink
continue rejoin on rejoin failure
Browse files Browse the repository at this point in the history
  • Loading branch information
devbis committed Oct 28, 2023
1 parent 6b26e0b commit 3ccd76a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/zb_appCb.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,12 @@ void zbdemo_bdbCommissioningCb(u8 status, void *arg){
break;
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 3ccd76a

Please sign in to comment.