- Notifications
You must be signed in to change notification settings - Fork 7.8k
fix: BLEAdvertising methods return error codes#11154
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
fix: BLEAdvertising methods return error codes #11154
Uh oh!
There was an error while loading. Please reload this page.
Conversation
Some methods returned void even if they could produce an error, in which case they failed silently. They now return the corresponding error code.
CLAassistant 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 FidelSch, 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 ...
|
SuGlider commented Mar 21, 2025
@FidelSch - Arduino returns Could you change the code to test |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Changed from returning esp_error_t, in order to be more arduino compatible.
FidelSch commented Mar 24, 2025
Thanks for your suggestions. I should mention I now used "yoda notation" for the evaluation of the return value, as this is how it is implemented in other methods in the same file. I was not sure wether to modify the if statements with similar expressions, so I didn't. If you think this would be a good idea, I am happy to implement it. |
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]
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.
SuGlider left a comment • 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.
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.
all good.bool BLEAdvertising::start() must return a value.
github-actionsbot commented Mar 25, 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 12m 48s ⏱️ Results for commit ae1d904. ♻️ This comment has been updated with latest results. |
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.
All fine. Thanks!
8622147 into espressif:masterUh oh!
There was an error while loading. Please reload this page.
Some methods on BLEAdvertising returned void even if they could produce an error, in which case they failed silently. They now return the corresponding error code.
Description of Change
These methods have been modified to return any potential error code
Tests scenarios
Unfortunately I currently do not have the necessary HW available
Related links
Addresses #6003