# scanForHardwareId

open suspend override fun scanForHardwareId(id: String, scanPeriodMs: Long): IDeviceCompat?

Starts a search for a specific Nix device using Bluetooth. The search will run until the specified device is found, or until a timeout elapses, whichever is shorter.

#### Return

Supported Nix device instance matching the provided ID. Null if no device was found or an error occurred.

#### Parameters

id

Nix device ID used to filter search results.

scanPeriodMs

Time period to run the search, in milliseconds. If omitted, the default value of DEFAULT_SINGLE_DEVICE_PERIOD_MS is used.

#### See also

IDeviceCompat.id