Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }