int[] IGXDLMSBase.GetAttributeIndexToRead()
{
List<int> attributes = new List<int>();
//LN is static and read only once.
if (string.IsNullOrEmpty(LogicalName))
{
attributes.Add(1);
}
//PushObjectList
if (CanRead(2))
{
attributes.Add(2);
}
//SendDestinationAndMethod
if (CanRead(3))
{
attributes.Add(3);
}
//CommunicationWindow
if (CanRead(4))
{
attributes.Add(4);
}
//RandomisationStartInterval
if (CanRead(5))
{
attributes.Add(5);
}
//NumberOfRetries
if (CanRead(6))
{
attributes.Add(6);
}
//RepetitionDelay
if (CanRead(7))
{
attributes.Add(7);
}
return attributes.ToArray();
}