| 123456789101112131415161718192021222324 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Wayne_Pump_Dart.MessageEntity.Outgoing
- {
- public class Poll : MessageBase
- {
- public Poll(byte address, byte blockSeqNumber)
- {
- base.Adrs = address;
- base.BlockSeqNumber = blockSeqNumber;
- base.ControlCharacter = ControlCharacter.POLL;
- }
- public override string ToLogString()
- {
- return "(Adrs: 0x" + this.Adrs.ToString("X").PadLeft(2, '0') + ", SeqNo: 0x"
- + this.BlockSeqNumber.ToString("X").PadLeft(2, '0') + ")";
- }
- }
- }
|