-
Notifications
You must be signed in to change notification settings - Fork 7.6k
all methods in the class BLEAdvertising are void and do not return any error codes #6003
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
Comments
Hello, can you please retest this on v2.0.3-rc1? |
Hi, I'm closing the issue due to no response. If needed you can reopen it. Thanks for your contribution & understanding! |
Hi there, Sorry I do not understand your request. The code did not change. The bug is still there. Same thing for all other methods. All of void type. |
I see, reopening. |
Hello |
Hello, |
I have already implemented my version for this fix, however as per @pabloandresm 's wishes I will not be opening a pull request for now. Best of luck! |
Hi @pabloandresm |
closing since no feedback |
There is not a single methond in the class BLEAdvertising located at BLEAdvertising.h/.cpp that returns any error code.
For example...BLEAdvertising::start().....that calls the syscall esp_ble_gap_start_advertising(), which returns an error, it is just ignored, and the BLEAdvertising::start() returns void.
Is there any logical explanation for this? I don't see any extra complication in the code by just returning the result of esp_ble_gap_start_advertising().
And the same thing goes for all the methods of this class.
The text was updated successfully, but these errors were encountered: