getPeripheralById

open fun getPeripheralById(id: ID): P?

A peripheral that the central manager is able to match to the provided identifier.

Return

A peripheral associated with the given UUID, if found.

Parameters

id

The peripheral identifier.

See also

Throws

If the central manager has been closed.

If Bluetooth is disabled or not available.

If the identifier is not valid.