1234567891011121314151617181920212223242526272829303132333435363738394041 |
- 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
- {
- /// <summary>
- /// Report a fuel start event to Veeder Root ATG console.
- /// 'fuel start' indicates a pump get authorized and is about to fueling.
- /// <SOH>B000000012FE0A<EOT>
- /// Event ID = 0
- /// Transmission delay = 0 seconds
- /// Selected Fueling Position = 12
- ///
- ///
- /// <SOH>B100000501FE06<EOT>
- /// Event ID = 1
- /// Transmission delay = 5 seconds
- /// Selected Fueling Position = 1
- /// </summary>
- public class StartEventReportRequest : OutgoingMessageBase
- {
- /// <summary>
- ///
- /// </summary>
- /// <param name="eventId">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</param>
- /// <param name="errorFlag">Range: '00' to 'FF'</param>
- /// <param name="secondsDelay">0-9999</param>
- /// <param name="fuelingPositionId">0-99</param>
- 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;
- }
- }
- }
|