Skip to content

all methods in the class BLEAdvertising are void and do not return any error codes #6003

Closed
@pabloandresm

Description

@pabloandresm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: BLEIssues related to BLE

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions