disconnect static method
Disconnect from a device. Get notified of connection state changes in onConnectionChange listener.
Implementation
static Future<void> disconnect(
String deviceId, {
Duration? timeout,
}) async {
return await _bleCommandQueue.queueCommand(
() => _platform.disconnect(deviceId),
timeout: timeout,
deviceId: deviceId,
);
}