Skip to content

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

Closed
pabloandresm opened this issue Dec 10, 2021 · 10 comments
Labels
Area: BLE Issues related to BLE

Comments

@pabloandresm
Copy link

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.

@VojtechBartoska VojtechBartoska added the Area: BT&Wifi BT & Wifi related issues label Dec 13, 2021
@VojtechBartoska
Copy link
Contributor

Hello, can you please retest this on v2.0.3-rc1?

@VojtechBartoska VojtechBartoska added the Resolution: Awaiting response Waiting for response of author label Apr 11, 2022
@VojtechBartoska
Copy link
Contributor

Hi,

I'm closing the issue due to no response.

If needed you can reopen it.

Thanks for your contribution & understanding!

@VojtechBartoska VojtechBartoska added Resolution: Expired More info wasn't provided and removed Resolution: Awaiting response Waiting for response of author labels May 3, 2022
@pabloandresm
Copy link
Author

Hello, can you please retest this on v2.0.3-rc1?

Hi there,

Sorry I do not understand your request. The code did not change. The bug is still there.
Not one method of BLEAdvertising returns any error code.
I mentioned the example of ::start() that is void type. It could return the error code of esp_ble_gap_start_advertising().

Same thing for all other methods. All of void type.

@VojtechBartoska VojtechBartoska added Status: Needs investigation We need to do some research before taking next steps on this issue Type: Question Only question and removed Resolution: Expired More info wasn't provided labels May 4, 2022
@VojtechBartoska
Copy link
Contributor

I see, reopening.

@VojtechBartoska VojtechBartoska added Area: BLE Issues related to BLE and removed Type: Question Only question Area: BT&Wifi BT & Wifi related issues labels Feb 16, 2023
@FidelSch
Copy link
Contributor

Hello
I would like to contribute, as this seems like a fairly simple fix. Could this be assigned to me?
As this is my first contribution, any guidelines are welcome.
Thanks in advance!

@Parsaabasi
Copy link

Hello @FidelSch
Are you still interested in the fix?
HERE is the guideline for the contributors. Please go study it and suggest your changes

Thanks.

@pabloandresm
Copy link
Author

Hello,
I would like to implement the fix. I was the one that reported it.

@Parsaabasi Parsaabasi removed the Status: Needs investigation We need to do some research before taking next steps on this issue label Jan 16, 2025
@Parsaabasi Parsaabasi reopened this Jan 16, 2025
@FidelSch
Copy link
Contributor

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!

@Parsaabasi
Copy link

Hi @pabloandresm
Do you have any updates on this issue?

@Jason2866
Copy link
Collaborator

closing since no feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: BLE Issues related to BLE
Projects
Development

No branches or pull requests

5 participants