public SerialPacketSerialization(SerialPacket packet, SerialDirection direction) { PortName = packet.PortName; Direction = direction; Data = SerialPacket.SerializeData(packet.Data); Time = DateTime.Now; }
private static bool Send(SerialPacket packet, WebSocketSession session) { return Send(packet.PortName, packet.Data, session, false); }
private static bool Send(SerialPacket packet) { return Send(packet.PortName, packet.Data, null, true); }