public void CheckTransmission()
        {
            _diagnosticInfo = string.Empty;

            _connection.Disconnect();

            int retryLeft = 3;

            while (_connection.OnlineStatus == false && retryLeft > 0)
            {
                _connection.Connect(DiagnosticChannelConnectionString);
                retryLeft -= 1;
            }

            if (_connection.OnlineStatus == false)
            {
                throw new Exception("Unable to connect.");
            }

            _dataChannel.Send(TelemetryDataChannel.DiagnosticMessage);
            _diagnosticInfo = _dataChannel.Receive();
            _connection.Disconnect();
        }
 private void EnviaMensagem(IDataChannel dataChannel, char _char)
 {
     dataChannel.Send(_char);
 }