locka99 / opcua

A client and server implementation of the OPC UA specification written in Rust
Mozilla Public License 2.0
496 stars 131 forks source link

[Help Required] How to get tag values related to server status? #127

Closed jigar88 closed 3 years ago

jigar88 commented 3 years ago

is there a way to get server status in the tag for monitoring, like weather server is started or running or broken? Or I need to use server status node defined in the server state to get the server status ? In python there is a function like server.is_running() , is there anything equivalent available ?

also I tried to use server info in the Ignition client but most of the nodes are null and not showing data. image

schroeder- commented 3 years ago

If you are on the server side: Get server_state and then use is_running

locka99 commented 3 years ago

I think if you're writing a server it is better to push state into OPC UA rather than try fetch state from it.