-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial data change callback is sometimes not called #5226
Comments
I have the same problem when creating monitored items via the async api. The calls to I analyzed the network communication and it seems like the flow is the fallowing:
I'm not sure if the server is allowed to send the values inside the PublishResponse before sending the CreateMonitoredItemsResponse, or if the the OPCUA standard is violated by that. Anyway, the open62541 client lib can't handle this and will discard the values. |
Description
Sometimes when creating a monitored item using the synchronous open62541 client API, the initial data change notification is dropped with the following message:
The error message is printed in https://github.com/open62541/open62541/blob/1.3/src/client/ua_client_subscriptions.c#L917 and indicates that the client's monitored item context has not yet been inserted into the list when the notification arrives.
The issue occurs with open62541 1.2 and 1.3, the server is also based on open62541 (same version).
Checklist
Please provide the following information:
UA_LOGLEVEL
set as low as necessary) attachedThe text was updated successfully, but these errors were encountered: