Closed scottmwyant closed 6 months ago
Try using the "ShdrCondition" class instead of the "ConditionObservationInput" class as there seems to be an issue with using that in the AddCondition() method.
using MTConnect;
using MTConnect.Shdr;
var c = new ShdrCondition("someId");
//var c = new ShdrCondition("someId", ConditionLevel.NORMAL);
//var c = new ShdrCondition("someId", ConditionLevel.NORMAL, UnixDateTime.Now);
adapter.AddCondition(c);
I'm adding better documentation in the "dev" branch and should have a new Release finished this week. Below is a link to the new SHDR readme but note that there are a few changes in the new version (specifically SendCurrent() is now SendChanged()): https://github.com/TrakHound/MTConnect.NET/tree/dev/src/MTConnect.NET-SHDR
Resolved, though there may be another problem, see #41.
Attempting to add a condition by using a
ConditionObservationInput
object results in a Stack overflow...