PeripheralBuilder
Properties
Functions
Link copied to clipboard
Whether to automatically connect as soon as the remote device becomes available (predicate returns true
— connection attempts will wait indefinitely unless wrapped in a withTimeout
), or to directly connect to the remote device (predicate returns false
— connection attempts timeout after ~30 seconds).
Link copied to clipboard
Link copied to clipboard
Registers an ObservationExceptionHandler for the Peripheral. When registered, observation failures are passed to the ObservationExceptionHandler instead of through observation flows. Any exceptions in the ObservationExceptionHandler will propagate through (and terminate) the associated observation flow.
Link copied to clipboard
Registers a ServicesDiscoveredAction for the Peripheral that is invoked after initial service discovery (upon establishing a connection).