Beispiel #1
0
        public TxCommunication(IRfcommAdapter adapter)
        {
            if (adapter == null)
            {
                throw new ArgumentNullException(nameof(adapter));
            }

            _communicationTaskQueue = new TaskQueue("TX Communication");
            _controllerNameCache    = new ConcurrentDictionary <string, string>();

            _adapter = adapter;
        }
Beispiel #2
0
 public TxInterface(IRfcommAdapter serialAdapter)
 {
     SerialAdapter    = serialAdapter;
     Connection       = ConnectionStatus.NotConnected;
     _masterInterface = new FtExtension(0);
 }