Skip to content

fix(zigbee): Fix rejoin issue for battery powered devices #10704

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix(zigbee): Add getter for RxOnWhenIdle
  • Loading branch information
P-R-O-C-H-Y committed Dec 10, 2024
commit 87d988fdb596a56e51b7059eb9ee8786d53ccdcc
2 changes: 1 addition & 1 deletion libraries/Zigbee/src/ZigbeeCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ static void esp_zb_task(void *pvParameters) {

//NOTE: This is a workaround to make battery powered devices to be discovered as battery powered
if (((zigbee_role_t)Zigbee.getRole() == ZIGBEE_END_DEVICE) && edBatteryPowered) {
zb_set_ed_node_descriptor(0, _rx_on_when_idle, 1);
zb_set_ed_node_descriptor(0, Zigbee.getRxOnWhenIdle(), 1);
}

esp_zb_stack_main_loop();
Expand Down
3 changes: 3 additions & 0 deletions libraries/Zigbee/src/ZigbeeCore.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ class ZigbeeCore {
void setRxOnWhenIdle(bool rx_on_when_idle) {
_rx_on_when_idle = rx_on_when_idle;
}
bool getRxOnWhenIdle() {
return _rx_on_when_idle;
}

void setRebootOpenNetwork(uint8_t time);
void openNetwork(uint8_t time);
Expand Down
Loading