using Edge.Core.Parser.BinaryParser.Attributes; using Edge.Core.Parser.BinaryParser.MessageEntity; using System; using System.Collections.Generic; using System.Text; namespace VeederRoot_ATG_Console.MessageEntity.DispenserInterface.Outgoing { /// /// Report a fuel start event to Veeder Root ATG console. /// 'fuel start' indicates a pump get authorized and is about to fueling. /// B000000012FE0A /// Event ID = 0 /// Transmission delay = 0 seconds /// Selected Fueling Position = 12 /// /// /// B100000501FE06 /// Event ID = 1 /// Transmission delay = 5 seconds /// Selected Fueling Position = 1 /// public class StartEventReportRequest : OutgoingMessageBase { /// /// /// /// must range from 0 - 9, rotation control is needed, Start Events and Stop Events contain event IDs to help the dispenser interface module identify transmissions that are repeated as a result of communication errors. Once an event report (start or end) is successfully transmitted, the Event Message ID must change so the next event report (start or end) will get a new ID in the range 0 - 9. An event report must keep the same ID until it is successfully transmitted. The status report does not require an ID /// Range: '00' to 'FF' /// 0-9999 /// 0-99 public StartEventReportRequest(int eventId, byte errorFlag, int secondsDelay, byte fuelingPositionId) { base.FunctionCodeRaw = "B"; base.EventId = eventId; base.ErrorFlag = errorFlag; base.SecondsDelay = secondsDelay; base.FuelingPositionId = fuelingPositionId; } } }