Exemplo n.º 1
0
 private void DisconnectPrinter()
 {
     if (Peripheral.IsConnected())
     {
         Peripheral.CancelConnection();
     }
 }
Exemplo n.º 2
0
        public void CancelConnection()
        {
            App.AddLog($"{Peripheral.Name} CancelConnect : {Helper.GetEnumName(State)}");
            _readDisposable?.Dispose();
            _ConnectWaitDisposable?.Dispose();

            _ConnectWaitDisposable = default;
            _readDisposable        = default;

            Peripheral?.CancelConnection();
        }
Exemplo n.º 3
0
        public void Dispose()
        {
            Peripheral?.CancelConnection();
            _statusDisposable?.Dispose();
            _readDisposable?.Dispose();
            _ConnectWaitDisposable?.Dispose();

            _statusDisposable      = default;
            _readDisposable        = default;
            _ConnectWaitDisposable = default;

            IsSubscribeStatus        = false;
            IsSubscribeConnetionWait = false;
        }