最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python - Unable to get data change notifications - Stack Overflow

programmeradmin1浏览0评论

Why we are unable to get data change when nodes get inactive and active again however it handle doesn't get change and also it is present in monitored items dictionary in asyncua?

Why we are unable to get data change when nodes get inactive and active again however it handle doesn't get change and also it is present in monitored items dictionary in asyncua?

Share Improve this question asked Nov 21, 2024 at 8:06 Meet BedmuthaMeet Bedmutha 411 silver badge6 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

Looks like a server fault. If a node gets removed there should be an update that the node is no longer available. Expanded the Subscriptionhandler class to get status_change_notification. Maybe there is a hint from the server that the node is removed.

class SubHandler:

    def datachange_notification(self, node: Node, val, data):
        ...

    def event_notification(self, event: ua.EventNotificationList):
        ...

    def status_change_notification(self, status: ua.StatusChangeNotification):
        _logger.info("status_notification %s", status)
发布评论

评论列表(0)

  1. 暂无评论