Package-level declarations

Types

Link copied to clipboard
data class DeviceInformation(val manufacturerName: String? = null, val modelNumber: String? = null, val serialNumber: String? = null, val hardwareRevision: String? = null, val firmwareRevision: String? = null, val softwareRevision: String? = null, val systemId: SystemId? = null, val pnpId: PnpId? = null)

Aggregated data from the Device Information Service (0x180A).

Link copied to clipboard
data class PnpId(val vendorIdSource: Int, val vendorId: Int, val productId: Int, val productVersion: Int)

PnP ID (0x2A50) — vendor, product, and version identifiers.

Link copied to clipboard
data class SystemId(val manufacturerIdentifier: Long, val organizationallyUniqueIdentifier: Int)

IEEE 11073 System ID (0x2A23) — manufacturer identifier and OUI.

Functions

Link copied to clipboard

Parses a PnP ID characteristic value (0x2A50).

Link copied to clipboard

Parses a System ID characteristic value (0x2A23).

Link copied to clipboard
suspend fun Peripheral.readDeviceInformation(): DeviceInformation

Reads all available characteristics from the Device Information Service (0x180A).