Properties

Link copied to clipboard
abstract val identifier: Identifier

Platform specific identifier for the remote peripheral. On some platforms, this can be used to "restore" a previously known peripheral for reconnection.

Link copied to clipboard
abstract val isConnectable: Boolean?

Returns if the peripheral is connectable.

Link copied to clipboard

The Manufacturer Specific Data, or null if none provided in the Advertisement packet.

Link copied to clipboard
abstract val name: String?

The name in the Advertisement.

Link copied to clipboard
abstract val peripheralName: String?

It is recommended that name be used instead, as the backing value for peripheralName may differ between the various platforms.

Link copied to clipboard
abstract val rssi: Int

The received signal strength, in dBm, of the packet received.

Link copied to clipboard
abstract val txPower: Int?

The TX Power Level data type indicates the transmitted/radiated power level of the Advertisement packet. The path loss on a received packet may be calculated using the following equation: pathloss = txPower – rssi

Link copied to clipboard
abstract val uuids: List<Uuid>

A list of Service or Service Class UUIDs. According to the BLE specification, GAP and GATT service UUIDs should not be included here.

Functions

Link copied to clipboard
abstract fun manufacturerData(companyIdentifierCode: Int): ByteArray?

Lookup the Manufacturer Specific Data by https://www.bluetooth.com/specifications/assigned-numbers/company-identifiers/

Link copied to clipboard
abstract fun serviceData(uuid: Uuid): ByteArray?

Lookup the data associated with a Service