mirror of
https://github.com/open62541/open62541.git
synced 2026-10-18 13:42:32 +08:00
fd1a1bad89
Added an optional feature to provide a general PubSub monitoring/timeout handling backend. Build option UA_ENABLE_PUBSUB_MONITORING The monitoring backend uses the server callback implementation per default. An application can provide it's own monitoring/timer backend by setting the monitoring callbacks in the server configuration. The MessageReceiveTimeout handling of DataSetReaders is provided as an monitoring example. The timeout check starts after the DataSetReader has received the first message. If there is no new message within the configured MessageReceiveTimeout the DataSetReader state changes to error. An application can get a notification about this timeout by providing a pubSubStateChangeCallback, which can be configured at the server configuration. When the DataSetReader receives a new message again, the state changes back to operational.