SmartConnector Forum
Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.
Link copied. Please paste this link to share this article on your social media post.
Hi,
I tried to get the point description from BACNet and Infinet alarms with the following code:
public bool ProcessAlarms(EwsClient clientObj)
{
responseObjByCat = clientObj.GetAlarmEvents();
alarmEvents = responseObjByCat.GetAlarmEventsAlarmEvents;
foreach (AlarmEventsType alarmEvent in alarmEvents.AlarmEvent)
{
if (!string.IsNullOrEmpty(alarmEvent.Type))
{
string idX = alarmEvent.SourceID;
string[] idsa = new string[] { idX };
var items1 = clientObj.GetItems(idsa);
if (items1.GetItemsItems.AlarmItems.Count() != 0)
{
alarmArchiverInfo.PointPath = items1.GetItemsItems.AlarmItems[0].ValueItemId;
idsa = new string[] { alarmArchiverInfo.PointPath };
var pointValue = clientObj.GetItems(idsa);
alarmArchiverInfo.PointValue = "";
if (pointValue.GetItemsItems.ValueItems.LongLength != 0)
{
alarmArchiverInfo.PointValue = pointValue.GetItemsItems.ValueItems[0].Value;
alarmArchiverInfo.PointDescription = pointValue.GetItemsItems.ValueItems[0].Description;
}
}
}
}
.
.
}
For regular ES alarms, it works fine. But it returns empty value on BACNet and Infinet alarms. (see attached)
How can I fix the problem?
I am using SmartConnector V2.4.23 and EBO V3.1.2.29.
Thanks!
Juh
Link copied. Please paste this link to share this article on your social media post.
Hi Juh,
I was able to reproduce this as well using SOAPUI. So this is not a Smart Connector specific issue and is likely a bug in EBO.
I would recommend working on opening a bug vs EBO about this.
Best Regards,
-Jeff
Link copied. Please paste this link to share this article on your social media post.
Hi Juh,
I was able to reproduce this as well using SOAPUI. So this is not a Smart Connector specific issue and is likely a bug in EBO.
I would recommend working on opening a bug vs EBO about this.
Best Regards,
-Jeff
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.