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 was using 1.3.xx EwsClient for a program. I updated it to the latest v2.1.83.
My old code was using GetUpdatedAlarmEvents() methods where I was passing the DataRef and LastAlarmRequestId from previous request.
GetUpdatedAlarmEventsResponse alarmEventsPerRequest = ewsClient.GetUpdatedAlarmEvents(0, 1000, alarmStatus.MoreDataRef, types, server.LastAlarmRequestId);
Now that this method is obsolete, could anyone point to the alternative method.
Thanks in advance!
Link copied. Please paste this link to share this article on your social media post.
There is an overload for GetUpdatedAlarmEvents with the parameter order changed.
The problem wass really a syntactic thing. If you weren't using any filters (e.g. priorityTo etc) you still needed to supply all of the null parameters to then supply the lastUpdate parameter. This was cumbersome to do. Using the new overload is simply cleaner to use.
You can still use the old method but if you're updating your code, you should just switch over. I have no plans to remove the old deprecated overload at this time.
Link copied. Please paste this link to share this article on your social media post.
There is an overload for GetUpdatedAlarmEvents with the parameter order changed.
The problem wass really a syntactic thing. If you weren't using any filters (e.g. priorityTo etc) you still needed to supply all of the null parameters to then supply the lastUpdate parameter. This was cumbersome to do. Using the new overload is simply cleaner to use.
You can still use the old method but if you're updating your code, you should just switch over. I have no plans to remove the old deprecated overload at this time.
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.