You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to create some monitored items for a subscription. Code snipped attached, but it looks like the MonitoredItemCreateResult containing the result does not contain the NodeId.
Code:
let node_ids = vec![1007, 1002];
let items_to_create: Vec<MonitoredItemCreateRequest> = node_ids
.iter()
.map(|v| NodeId::new(ns, *v).into())
.collect();
let results = session
.create_monitored_items(id, TimestampsToReturn::Both, &items_to_create)
.unwrap();
debug!("status_code {:?}", results);
The node_id you're looking at is part of the filter_result. But since you don't have any filters, it's empty.
The message itself doesn't contain any node id. Often in OPC UA, one is expected to keep state from the invocation in order to interpret the response: the Read service response can only be interpreted if you know what ReadValueIds you used to invoke it.
I tried to create some monitored items for a subscription. Code snipped attached, but it looks like the MonitoredItemCreateResult containing the result does not contain the NodeId.
Code:
Output :
Has anyone seen a similar issue ?
The text was updated successfully, but these errors were encountered: