Exemplo n.º 1
0
        public List <ROCPlusEventRecord> GetROCPlusEvents(byte?destinationUnit, byte?destinationGroup, byte?sourceUnit, byte?sourceGroup, byte count, ushort startIndex)
        {
            var request  = new OpCode119Request(destinationUnit.GetValueOrDefault(DeviceAddress), destinationGroup.GetValueOrDefault(DeviceGroup), sourceUnit.GetValueOrDefault(HostAddress), sourceGroup.GetValueOrDefault(HostGroup), count, startIndex);
            var response = Transport.UnicastMessage <OpCode119Response>(request);

            return(response.ROCPlusEvents);
        }
Exemplo n.º 2
0
        public ushort GetCurrentROCPlusEventIndex(byte?destinationUnit, byte?destinationGroup, byte?sourceUnit, byte?sourceGroup)
        {
            var request  = new OpCode119Request(destinationUnit.GetValueOrDefault(DeviceAddress), destinationGroup.GetValueOrDefault(DeviceGroup), sourceUnit.GetValueOrDefault(HostAddress), sourceGroup.GetValueOrDefault(HostGroup), 0, 0);
            var response = Transport.UnicastMessage <OpCode119Response>(request);

            return(response.CurrentEventLogIndex);
        }