Closed xiaoyuvax closed 3 weeks ago
What happens if you use Sampling instead of Reporting, with a sampling interval of 500ms?
I made a test program exactly with the TestClient code from LibUA demos (the latest pull), in which:
client.CreateMonitoredItems(subscrId, TimestampsToReturn.Both,
[
new MonitoredItemCreateRequest(
new ReadValueId(new NodeId(2, args[1]), NodeAttribute.Value, null, new QualifiedName()),
MonitoringMode.Sampling,
new MonitoringParameters(clientHanlder, 500, null, 100, false)),
], out monitorCreateResults);
Can you share a Wireshark capture with security set to None with uaexpert, then with your libua client?
Sorry, not possible so far, it's found in a production environment. I don't even have similar environment to reproduce it locally, as is my headache too, otherwise, i would have located the line causing the problem in the source. Finally, I had to reimplement and done the client with h-opc-cli, and it works perfectly after i forked it and made minor changes. If any further discovery, i'll infom here.
It's difficult to say what might be different because it could be anything from subscription configuration to connection/auth configuration.
Connecting to GE IGS, CreateSubscription() receives data updates from simulated tags fluently, but not from actual PLC data updates except for initial update immediately after subscription, no more data received, possible reason?
UaExpert monitors fluently too.