public void Send(OutgoingMessage message) { var encoder = _messageEncoderFactory.Build(message); var bytes = encoder.Encode(message); _byteStream.Write(bytes, 0, bytes.Length); _byteStream.Write(new byte[] { 0x0D, 0x0A }, 0, 2); Logger.Debug(() => $"sent to Rfm2Pi : {message} -> {BitConverter.ToString(bytes)}-0D-0A"); }