我一直在研究 node-opcua 书中的示例,这本书非常有帮助(完成后会很棒!!!!)。但是,当服务器发布事件时,我在使用 Prosys 和 Matrikon 客户端时遇到了问题。具体来说,服务器崩溃:
Users/brbl/Projects/GitHub/opcua-tutorial/node_modules/node-opcua-address-space/src/alarms_and_conditions/check_where_clause.ts:120
}
^
Error: Only OfType operator are allowed in checkWhereClause
at Object.checkWhereClause (/Users/brbl/Projects/GitHub/opcua-tutorial/node_modules/node-opcua-address-space/src/alarms_and_conditions/check_where_clause.ts:120:6)
at MonitoredItem._on_opcua_event (/Users/brbl/Projects/GitHub/opcua-tutorial/node_modules/node-opcua-server/source/monitored_item.ts:833:10)
at UAObject.emit (events.js:214:15)
at UAObject.EventEmitter.emit (domain.js:476:20)
at UAObject._bubble_up_event (/Users/brbl/Projects/GitHub/opcua-tutorial/node_modules/node-opcua-address-space/src/ua_object.ts:161:20)
at UAObject.raiseEvent (/Users/brbl/Projects/GitHub/opcua-tutorial/node_modules/node-opcua-address-space/src/ua_object.ts:144:14)
at Timeout._onTimeout (/Users/brbl/Projects/GitHub/opcua-tutorial/my_event_server.ts:95:11)
at listOnTimeout (internal/timers.js:531:17)
at processTimers (internal/timers.js:475:7)
任何有关如何解决问题的指导将不胜感激。谢谢。