PeripheralBuilder
Properties
Amount of time to allow system to gracefully disconnect before forcefully closing the peripheral.
Determines if characteristic equality should use UUID comparison (true), or compare by reference (false). Default is to compare by reference (false).
Functions
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).
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.
Registers a ServicesDiscoveredAction for the Peripheral that is invoked after initial service discovery (upon establishing a connection).