- Notifications
You must be signed in to change notification settings - Fork 7.8k
feat(zigbee): Add check, boolean returns, fix Analog, add optional reset on factoryReset#11153
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
feat(zigbee): Add check, boolean returns, fix Analog, add optional reset on factoryReset #11153
Uh oh!
There was an error while loading. Please reload this page.
Conversation
P-R-O-C-H-Y commented Mar 20, 2025 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
github-actionsbot commented Mar 20, 2025 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
👋 Hello P-R-O-C-H-Y, we appreciate your contribution to this project! 📘 Please review the project's Contributions Guide for key guidelines on code, documentation, testing, and more. 🖊️ Please also make sure you have read and signed the Contributor License Agreement for this project. Click to see more instructions ...
Review and merge process you can expect ...
|
github-actionsbot commented Mar 20, 2025 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Test Results 76 files 76 suites 13m 27s ⏱️ Results for commit 3bebb79. ♻️ This comment has been updated with latest results. |
github-actionsbot commented Mar 20, 2025 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Memory usage test (comparing PR against master branch)The table below shows the summary of memory usage change (decrease - increase) in bytes and percentage for each target.
Click to expand the detailed deltas report [usage change in BYTES]
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
me-no-dev commented Mar 20, 2025
Please format errors like this: esp_err_t err = esp_wifi_set_max_tx_power(power); if (err != ESP_OK){log_e("Failed to set TX Power: 0x%x: %s", err, esp_err_to_name(err))} |
104a381 to 80eba94CompareUh oh!
There was an error while loading. Please reload this page.
SuGlider commented Mar 27, 2025 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
@P-R-O-C-H-Y - please review the code in ZigbeeEP.cpp :: Better think and review the whole zigbee code whenever using |
SuGlider left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From a fast code read, I understand that ZigbeeEP.cpp can cause memory leaks.
It may happen in other code files as well.
I recommend reviewing all places where new or malloc is used.
P-R-O-C-H-Y commented Mar 27, 2025
Thanks @SuGlider, will take a look. |
lucasssvaz left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
909606a to f5e28e1CompareP-R-O-C-H-Y commented Mar 27, 2025
All done now. |
This reverts commit 8cf38c5.
a3b6fe6 into espressif:masterUh oh!
There was an error while loading. Please reload this page.
Description of Change
factoryResetmethod now have an optional parameterbool restart, by default its set to TRUE, but if false is passed, the Zigbee will just erase the nvram and the reset or reboot will need to be managed in user sketch. Example of how it can be used is the Temperature Humidity Sleepy example.AnalogSensorEndpoint -> removed AnalogValue, as its not commonly used in any deviceAnalogSensorcompilation warning messageTests scenarios
Related links
Closes#11178