public List <ROCPlusAlarmRecord> GetROCPlusAlarms(byte?destinationUnit, byte?destinationGroup, byte?sourceUnit, byte?sourceGroup, byte count, ushort startIndex) { var request = new OpCode118Request(destinationUnit.GetValueOrDefault(DeviceAddress), destinationGroup.GetValueOrDefault(DeviceGroup), sourceUnit.GetValueOrDefault(HostAddress), sourceGroup.GetValueOrDefault(HostGroup), count, startIndex); var response = Transport.UnicastMessage <OpCode118Response>(request); return(response.ROCPlusAlarms); }
public ushort GetCurrentROCPlusAlarmIndex(byte?destinationUnit, byte?destinationGroup, byte?sourceUnit, byte?sourceGroup) { var request = new OpCode118Request(destinationUnit.GetValueOrDefault(DeviceAddress), destinationGroup.GetValueOrDefault(DeviceGroup), sourceUnit.GetValueOrDefault(HostAddress), sourceGroup.GetValueOrDefault(HostGroup), 0, 0); var response = Transport.UnicastMessage <OpCode118Response>(request); return(response.CurrentAlarmLogIndex); }