SOCommDeviceSearcher

A utility to search for active SOComm devices in the surrounding area. A bluetooth low energy scan will be performed when calling search, which responds with live updates as long as the returned Observable is subscribed.

Use SOCommDeviceSearcher.create to create an instance of this interface.

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class FoundDevice(val deviceName: String, val address: String, val rssi: Int, val lastScanned: LocalDateTime)

A result of a device that has been found nearby.

Link copied to clipboard
class ScanFailedException(val errorCode: Int) : RuntimeException

Signals, that the BLE device scan could not be started.

Functions

Link copied to clipboard
@CheckReturnValue
abstract fun search(): Observable<List<SOCommDeviceSearcher.FoundDevice>>

Starts the search for SOComm devices, which is performed using a bluetooth low energy scan.