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