public List <byte> GetROCPlusConfiguredHistoryPoints(byte?destinationUnit, byte?destinationGroup, byte?sourceUnit, byte?sourceGroup, byte historySegment) { var request = new OpCode139Request(destinationUnit.GetValueOrDefault(DeviceAddress), destinationGroup.GetValueOrDefault(DeviceGroup), sourceUnit.GetValueOrDefault(HostAddress), sourceGroup.GetValueOrDefault(HostGroup), historySegment); var response = Transport.UnicastMessage <OpCode139Response>(request); return(response.ConfiguredPoints); }
public List <ROCPlusHistoryRecord> GetROCPlusHistory(byte?destinationUnit, byte?destinationGroup, byte?sourceUnit, byte?sourceGroup, byte historySegment, ushort historyIndex, byte historyType, bool requestTimeStamps, List <byte> requestedHistoryPoints, byte numberOfTimePeriods) { var request = new OpCode139Request(destinationUnit.GetValueOrDefault(DeviceAddress), destinationGroup.GetValueOrDefault(DeviceGroup), sourceUnit.GetValueOrDefault(HostAddress), sourceGroup.GetValueOrDefault(HostGroup), historySegment, historyIndex, historyType, requestTimeStamps, requestedHistoryPoints, numberOfTimePeriods); var response = Transport.UnicastMessage <OpCode139Response>(request); return(response.MeterHistory); }
public ushort GetCurrentROCPlusHistorySegmentIndex(byte?destinationUnit, byte?destinationGroup, byte?sourceUnit, byte?sourceGroup, byte historySegment, byte historyType) { var request = new OpCode139Request(destinationUnit.GetValueOrDefault(DeviceAddress), destinationGroup.GetValueOrDefault(DeviceGroup), sourceUnit.GetValueOrDefault(HostAddress), sourceGroup.GetValueOrDefault(HostGroup), historySegment, 0, historyType, false, new List <byte>(), 0); var response = Transport.UnicastMessage <OpCode139Response>(request); return(response.CurrentIndex); }