-
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
fix: BLEAdvertising methods return error codes #11154
fix: BLEAdvertising methods return error codes #11154
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.
👋 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 ...
|
@FidelSch - Arduino returns Could you change the code to test |
Changed from returning esp_error_t, in order to be more arduino compatible.
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]
|
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.
Test Results 76 files 76 suites 12m 48s ⏱️ Results for commit ae1d904. ♻️ This comment has been updated with latest results. |
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!
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