To get all points for a specific equipment, use the GetEquipmentPoints
method.
Library method name |
GetEquipmentPoints
|
---|---|
Description | GET points for a specific equipment |
Method signature |
IEnumerable<Point> GetEquipmentPoints(Guid equipmentId);
|
Method input parameters |
equipmentId : GUID of the equipment object that the method targets and retrieves the point objects. |
Return value | A collection of Point objects. |
The following .NET C# code is an example of a successful get equipment points response.
IEnumerable<Point> equipmentPoints = client.GetEquipmentPoints(sampleEquipment.Id);
Point point = equipmentPoints.FirstOrDefault();
string presentValue = point.PresentValue?.StringValue;
Console.WriteLine(point);
/*
{
"EquipmentName": "AHU-07",
"ShortName": "CLG-O",
"Label": "Cooling Output",
"Category": "",
"IsDisplayData": true,
"ObjectId": "9dd107cf-e8dc-583a-9557-813395ae1971",
"AttributeUrl": "https://win2016-vm2/api/v2/enumSets/509/members/85",
"ObjectUrl": "https://win2016-vm2/api/v2/objects/9dd107cf-e8dc-583a-9557-813395ae1971",
"PresentValue":
{
"StringValue": "0",
"StringValueEnumerationKey": null,
"NumericValue": 0.0,
"BooleanValue": false,
"ArrayValue": null,
"Attribute": "presentValue",
"Id": "9dd107cf-e8dc-583a-9557-813395ae1971",
"Reliability": "Reliable",
"ReliabilityEnumerationKey": "reliabilityEnumSet.reliable",
"Priority": "0 (No Priority)",
"PriorityEnumerationKey": "writePriorityEnumSet.priorityNone",
"IsReliable": true
}
}
*/