Ask our Experts
Didn't find what you are looking for? Ask our experts!
Ask Me About Webinar: Data Center Assets - Modeling, Cooling, and CFD Simulation
Join our 30-minute expert session on July 10, 2025 (9:00 AM & 5:00 PM CET), to explore Digital Twins, cooling simulations, and IT infrastructure modeling. Learn how to boost resiliency and plan power capacity effectively. Register now to secure your spot!
Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.
Search in
Link copied. Please paste this link to share this article on your social media post.
In the smartConnector i'm currently developing i've noticed something, I have defined some EWS values as "writeable", i can modify them from an EBO client an the values change correctly, but, my updateProcessor (that implements ILongRunningProcess) can't see the changes. I have to stop and start again the processor in order to watch the changes from it.
i'm using the method "GetValue()" to retrieve the data.
Example:
var pathValue = DataAdapter.ValueItems.FirstOrDefault(x => x.AlternateId == "CameraPathJpeg_" + index.ToString());
var path=pathValue.GetValue();
Any idea?
Link copied. Please paste this link to share this article on your social media post.
Hi Jorge,
It's probably because you're keeping the DataAdapter alive in your ILongRunningProcess processor, and with time the data in the datacontext is no longer fresh.
The idea is to use it in a normal processor run and let it "die", and reconnect when the processor runs again. However, in a long running processor this is not the case, so we have to take care of that ourselves. Calling CreateDatabaseContext() on the DataAdapter should do the trick.
From the IDE docs:
"This adapter is tightly coupled to a MongooseDbContext's interfaces via dependency injection. As such, it should be a "short lived" instance however you can call CreateDatabaseContext to refresh your connection. To consume, you can optionally ConnectExisting to authenticate yourself against an existing EwsServer or ConnectNew to create a brand new EwsServer instance. In the latter case you are immediately authenticated."
BR
Armend
You’ve reached the end of your document
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.