internal async Task SendTunnelingAcknowledge(byte sequenceCounter) { var telegram = new KnxTunnelingAcknowledge(ChannelId, sequenceCounter); var ms = new MemoryStream(); Serializer.Serialize(telegram, ms); _trace.Write(TraceSeverities.Debug, "Sending SendTunnelingAcknowledge: {0}", telegram.ToString()); await Send(ms, _socket); }
public static void Serialize(KnxTunnelingAcknowledge knxTunnelingAcknowledge, MemoryStream memoryStream) { memoryStream.SetLength(0); memoryStream.Seek(6, SeekOrigin.Begin); SerializeCommonConnectionHeader(knxTunnelingAcknowledge.ChannelId, knxTunnelingAcknowledge.SequenceNumber, memoryStream); memoryStream.Seek(0, SeekOrigin.Begin); var header = new KnxTelegramHeader(6, 0x10, 0x421, (ushort)memoryStream.Length); Serialize(header, memoryStream); }
public void Visit(KnxTunnelingAcknowledge knxTunnelingAcknowledge) { _knxConnection._trace.Write(TraceSeverities.Debug, "Received TunnelAck: {0}", knxTunnelingAcknowledge); }