internal override bool SendFrame(KnxFrame frame)
        {
            var byteFrame = frame.ToFrame();

            KnxHelper.Logger.LogTrace($"Writing {frame}");
            KnxHelper.Logger.LogHexOut(byteFrame);

            var length = _client?.Send(byteFrame, byteFrame.Length);

            return(length == byteFrame.Length);
        }
Beispiel #2
0
        internal override bool SendFrame(KnxFrame frame)
        {
            var byteFrame = frame.ToFrame();

            KnxHelper.Logger.LogTrace($"Writing {frame}");
            KnxHelper.Logger.LogHexOut(byteFrame);

            try
            {
                var length = _client?.Send(byteFrame, byteFrame.Length);

                return(length == byteFrame.Length);
            }
            catch (Exception e)
            {
                KnxHelper.Logger.LogError(e, "Error writing value...");
            }

            return(false);
        }