internal async Task SendConnectRequest() { var header = new KnxConnectRequest(LocalEndpoint); var ms = new MemoryStream(); Serializer.Serialize(header, ms); _trace.Write(TraceSeverities.Debug, "Sending SendConnectRequest: {0}", header.ToString()); State = States.Connecting; await Send(ms, _socket); }
public static void Serialize(KnxConnectRequest knxConnectRequest, MemoryStream stream) { stream.SetLength(0); stream.Seek(6, SeekOrigin.Begin); Serialize(knxConnectRequest.IpEndPoint, stream); Serialize(knxConnectRequest.IpEndPoint, stream); stream.WriteByte(4); stream.WriteByte(4); stream.WriteByte(2); stream.WriteByte(0); stream.Seek(0, SeekOrigin.Begin); var header = new KnxTelegramHeader(6, 0x10, 0x205, (ushort)stream.Length); Serialize(header, stream); }
public void Visit(KnxConnectRequest knxConnectRequest) { throw new NotImplementedException(); }