public void WriteToBms1Stream(IBms1Writer writer) { writer.WriteBlock(Bms1BlockTypeId, () => { writer.WriteString(InterfaceName); writer.WriteInt16(InterfaceVersion); writer.WriteString(ApplicationName); ApplicationVersion.WriteToBms1Stream(writer); writer.WriteString(ApplicationInstance); }); }
public override void WriteToBms1Stream(IBms1Writer writer) { writer.WriteBlock(Bms1BlockTypeId, () => { Version.WriteToBms1Stream(writer); writer.WriteString(AdditionaInfo); // not sent before V.2 }); }
public override void WriteToBms1Stream(IBms1Writer writer) { writer.WriteBlock(Bms1BlockTypeId, () => { writer.WriteString(Version); writer.WriteEnum(CpuType); // Intentionally, we do not write AdditionalInfo. This simulates an older sender and a newer receiver; }); }