Corrected reading of ALL to not read with array index 0.
This commit is contained in:
@@ -833,8 +833,7 @@ void StartNextObject( BACNET_READ_ACCESS_DATA *rpm_object, BACNET_OBJECT_ID *pNe
|
|||||||
rpm_object->listOfProperties = rpm_property;
|
rpm_object->listOfProperties = rpm_property;
|
||||||
assert(rpm_property);
|
assert(rpm_property);
|
||||||
rpm_property->propertyIdentifier = PROP_ALL;
|
rpm_property->propertyIdentifier = PROP_ALL;
|
||||||
/* Start with a count of the array size */
|
rpm_property->propertyArrayIndex = BACNET_ARRAY_ALL;
|
||||||
rpm_property->propertyArrayIndex = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Main function of the bacepics program.
|
/** Main function of the bacepics program.
|
||||||
@@ -961,9 +960,6 @@ int main(
|
|||||||
/* Update times; aids single-step debugging */
|
/* Update times; aids single-step debugging */
|
||||||
last_seconds = current_seconds;
|
last_seconds = current_seconds;
|
||||||
StartNextObject( rpm_object, &myObject );
|
StartNextObject( rpm_object, &myObject );
|
||||||
/* Override the default and set the optional array index to "None" */
|
|
||||||
if (myState == GET_ALL_REQUEST)
|
|
||||||
rpm_object->listOfProperties->propertyArrayIndex = -1;
|
|
||||||
invoke_id =
|
invoke_id =
|
||||||
Send_Read_Property_Multiple_Request(buffer, MAX_PDU,
|
Send_Read_Property_Multiple_Request(buffer, MAX_PDU,
|
||||||
Target_Device_Object_Instance, rpm_object);
|
Target_Device_Object_Instance, rpm_object);
|
||||||
|
|||||||
Reference in New Issue
Block a user