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); }
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); }