You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to add a condition by using a ConditionObservationInput object results in a Stack overflow...
usingMTConnect.Adapters.Shdr;usingMTConnect.Observations;usingMTConnect.Observations.Input;varadapter=newShdrQueueAdapter("console-adapter");adapter.MultilineAssets=true;adapter.MultilineDevices=true;adapter.AgentConnected+=(sender,connectionId)=>Console.WriteLine($"Agent Connection (ID = {connectionId}) : Agent Connected");adapter.AgentDisconnected+=(sender,connectionId)=>Console.WriteLine($"Agent Connection (ID = {connectionId}) : Agent Disconnected");adapter.PingReceived+=(sender,connectionId)=>Console.WriteLine($"Agent Connection (ID = {connectionId}) : Agent Ping Received");adapter.PongSent+=(sender,connectionId)=>Console.WriteLine($"Agent Connection (ID = {connectionId}) : Pong Sent to Agent");adapter.LineSent+=(sender,args)=>Console.WriteLine($"Agent Connection (ID = {args.ClientId}) : Line Sent : {args.Message}");adapter.Start();// var c = new ConditionObservationInput("someId", ConditionLevel.NORMAL, DateTime.Now);varc=newConditionObservationInput("someId");adapter.AddCondition(c);
The text was updated successfully, but these errors were encountered:
Try using the "ShdrCondition" class instead of the "ConditionObservationInput" class as there seems to be an issue with using that in the AddCondition() method.
usingMTConnect;usingMTConnect.Shdr;varc=newShdrCondition("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
Attempting to add a condition by using a
ConditionObservationInput
object results in a Stack overflow...The text was updated successfully, but these errors were encountered: