Skip to content

centralManager.scanForPeripherals call as hot publisher #24

@adriansergheev

Description

@adriansergheev

Hi,
centralManager.scanForPeripherals(withServices:, options:) which returns AnyPublisher<BLEScanResult, BLEError> acts as a hot observable since it executes original Apple provided scanForPeripherals(withServices:, options:) under the hood, which is a side effect.

Alternatively, that call can be postponed until the Bluetooth library receives .poweredOn state or something like that, or wrap it in a Deferred etc.

Using 0.1.6 version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions