isPaired method
Check if a device is paired.
For Apple and Web, you have to pass a "pairingCommand" with an encrypted read or write characteristic.
Returns true/false if it manages to execute the command.
Returns null when no pairingCommand is passed.
Note that it will trigger pairing if the device is not already paired.
Implementation
Future<bool?> isPaired({
BleCommand? pairingCommand,
Duration? timeout,
}) {
return UniversalBle.isPaired(
deviceId,
pairingCommand: pairingCommand,
timeout: timeout,
);
}