-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
feat(zigbee): Add check, boolean returns, fix Analog, add optional reset on factoryReset #11153
Conversation
👋 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 ...
|
Test Results 76 files 76 suites 13m 27s ⏱️ Results for commit 3bebb79. ♻️ This comment has been updated with latest results. |
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]
|
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
80eba94
Compare
@P-R-O-C-H-Y - please review the code in ZigbeeEP.cpp :: Better think and review the whole zigbee code whenever using |
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.
Thanks @SuGlider, will take a look. |
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
f5e28e1
Compare
All done now. |
This reverts commit 8cf38c5.
Description of Change
factoryReset
method 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.AnalogSensor
Endpoint -> removed AnalogValue, as its not commonly used in any deviceAnalogSensor
compilation warning messageTests scenarios
Related links
Closes #11178