Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion MLight/MLight.slcp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ configuration:
condition:
- zigbee_end_device_support
- name: EMBER_AF_PLUGIN_END_DEVICE_SUPPORT_WAKE_TIMEOUT_SECONDS
value: 1.5f
value: 3
condition:
- zigbee_end_device_support
- name: EMBER_AF_REJOIN_ATTEMPTS_MAX
value: 128
condition:
- zigbee_end_device_support
- name: SL_IOSTREAM_USART_VCOM_RESTRICT_ENERGY_MODE_TO_ALLOW_RECEPTION
Expand Down
6 changes: 5 additions & 1 deletion MLight/mods/device-nwk-join-control.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,18 @@ void emberAfStackStatusCallback(EmberStatus status)

switch (nwkState) {
case EMBER_NO_NETWORK:
case EMBER_JOINED_NETWORK_NO_PARENT:
// Keep trying finding the network
sl_zigbee_event_set_inactive( &dnjcState.dnjcEvent );
dnjcState.smPostTransition = _event_state_indicate_startup_nwk;
sl_zigbee_event_set_delay_ms( &dnjcState.dnjcEvent, DNJC_STARTUP_STATUS_DELAY_MS );
dnjcState.leavingNwk = false; // leave has completed.
stopIdentifying();
break;

case EMBER_JOINED_NETWORK_NO_PARENT:
sl_zigbee_app_debug_println("EMBER_JOINED_NETWORK_NO_PARENT");
break;

default:
break;
}
Expand Down
2 changes: 1 addition & 1 deletion MLight/mods/device-nwk-join-control.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define _DEVICE_NWK_JOIN_CONTROL_H_

#ifndef DNJC_STARTUP_STATUS_DELAY_MS
#define DNJC_STARTUP_STATUS_DELAY_MS 3000
#define DNJC_STARTUP_STATUS_DELAY_MS 5000
#endif

#include <af-types.h>
Expand Down
Loading