FreeOpcUa / python-opcua

LGPL Pure Python OPC-UA Client and Server
http://freeopcua.github.io/
GNU Lesser General Public License v3.0
1.35k stars 659 forks source link

Read Node without AccessLevel #618

Open GoLoCom opened 6 years ago

GoLoCom commented 6 years ago

Server:

  NodeData.set_value(123)
  NodeData.unset_attr_bit(ua.AttributeIds.AccessLevel,ua.AccessLevel.CurrentRead)
  NodeData.unset_attr_bit(ua.AttributeIds.UserAccessLevel,ua.AccessLevel.CurrentRead)

But Client still can read the data

/opcua/server/address_space.py Line:46 def read(self,aspace):

oroulet commented 6 years ago

The check is probably not implemented...I am afraid this will slow down read... but maybe you have a good reason for wanting that?

GoLoCom commented 6 years ago

When there are multiple internet devices accessing, I want to isolate some devices and only allow them to write. I tried to filter the write and the result really slowed down.xD