re-create Client_MonitoredItems_createDataChanges_async

4 views
Skip to first unread message

Juan José P

unread,
May 18, 2026, 5:03:24 AM (5 days ago) May 18
to open62541
Hello,

I'm trying to create a client daemon with the version 1.5.4 that uses a “select” loop to manage another communication library.
My question is: How should I handle a short or long network outage?

Should I just delete the local subscription using `Client_Subscriptions_deleteSingle` and set the local subId to 0?
And then re-register it when I restore the connection?

Do I need to set up all nodes again with `Client_MonitoredItems_createDataChanges_async`, or should I clean something up first?

And after calling `Client_MonitoredItems_createDataChanges_async`, do I need to call `UA_CreateMonitoredItemsRequest_clear(&request) + UA_free(contexts) + UA_free(callbacks)` to avoid memory leaks?

Thanks !

Reply all
Reply to author
Forward
0 new messages