Пример #1
0
        }                                           // not available on iOS

        public Task <IPeripheralConnection> ConnectAsync(int timeout)
        {
            var con = new PeripheralConnection(this, ++_connNum);

            _connections.Add(con);
            if (_connections.Count > 1)
            {
                _logger.LogWarning("{ConnectionCount} parallel connections to the same device detected");
            }
            return(con.ConnectAsync(timeout));
        }
 public Service(PeripheralConnection connection, CBService service)
 {
     _connection = connection;
     _service    = service;
     _uuid       = service.UUID.ToUuid();
 }