private void DisconnectPrinter() { if (Peripheral.IsConnected()) { Peripheral.CancelConnection(); } }
public void CancelConnection() { App.AddLog($"{Peripheral.Name} CancelConnect : {Helper.GetEnumName(State)}"); _readDisposable?.Dispose(); _ConnectWaitDisposable?.Dispose(); _ConnectWaitDisposable = default; _readDisposable = default; Peripheral?.CancelConnection(); }
public void Dispose() { Peripheral?.CancelConnection(); _statusDisposable?.Dispose(); _readDisposable?.Dispose(); _ConnectWaitDisposable?.Dispose(); _statusDisposable = default; _readDisposable = default; _ConnectWaitDisposable = default; IsSubscribeStatus = false; IsSubscribeConnetionWait = false; }