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 poll an AS for alarms using EWS.
I make a GetAlarmEvents() method to get alarm events and I save the LastUpdate guid.
For subsequent requests, I pass the LastUpdate guid to GetUpdatedAlarmEvents() method, to get updated alarm events.
In my case, because the AS was running at 100%, it was cold started. After the cold start, the LastUpdate guid I had saved in my program was not working anymore. It was not returning any alarms.
To fix this, I had to make a GetAlarmEvents() request to get a new LastUpdate guid.
Does an AS restart reset the LastUpdate guid on the AS?
Link copied. Please paste this link to share this article on your social media post.
I believe it does but really should be leveraging the "NeedsRefresh" return from GetUpdatedAlarmEvents. When you receive that (at any time) you will need to restart your workflow again. By doing this you abstract away the idiosyncrasies of the implementing server (SBO in this case).
Incidentally, there is an AlarmItemReader in the Mongoose.Process namespace which manages this all for you which you should also look at.
Link copied. Please paste this link to share this article on your social media post.
I believe it does but really should be leveraging the "NeedsRefresh" return from GetUpdatedAlarmEvents. When you receive that (at any time) you will need to restart your workflow again. By doing this you abstract away the idiosyncrasies of the implementing server (SBO in this case).
Incidentally, there is an AlarmItemReader in the Mongoose.Process namespace which manages this all for you which you should also look at.
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.