/// <summary> /// The Read Reporting Configuration Command /// /// The Read Reporting Configuration command is used to read the configuration /// details of the reporting mechanism for one or more of the attributes of a cluster. /// /// @param records {@link List<AttributeRecord>} Records /// @return the Task<CommandResult> command result Task /// </summary> public Task <CommandResult> ReadReportingConfigurationCommand(List <AttributeRecord> records) { ReadReportingConfigurationCommand command = new ReadReportingConfigurationCommand(); // Set the fields command.Records = records; return(Send(command)); }
/// <summary> /// Gets the reporting configuration for an attribute /// /// <param name="attribute">the ZclAttribute on which to enable reporting</param> /// <returns>command Task CommandResult</returns> /// </summary> public Task <CommandResult> GetReporting(ZclAttribute attribute) { ReadReportingConfigurationCommand command = new ReadReportingConfigurationCommand(); command.ClusterId = _clusterId; AttributeRecord record = new AttributeRecord(); record.AttributeIdentifier = attribute.Id; record.Direction = 0; command.Records = new List <AttributeRecord>(new[] { record }); command.DestinationAddress = _zigbeeEndpoint.GetEndpointAddress(); return(Send(command)); }