Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server doesn't support index range for Array variables #635

Open
jcbastosportela opened this issue Jul 30, 2021 · 0 comments · May be fixed by #636
Open

Server doesn't support index range for Array variables #635

jcbastosportela opened this issue Jul 30, 2021 · 0 comments · May be fixed by #636
Labels
enhancement New feature or request

Comments

@jcbastosportela
Copy link
Contributor

Describe the bug

According to the standard the server should reply to a read of an array that defines AttributeIds.IndexRange with a sub array of the given range, however the server always replies with the full array.
see:
https://reference.opcfoundation.org/v104/Core/docs/Part4/7.24/
https://reference.opcfoundation.org/v104/Core/docs/Part4/7.22/

To Reproduce

  1. create a server providing an array
  2. create a client that reads the Value attribute of the array giving also IndexRange attribute with a valid range

Expected behavior

Client receives an array that matches the requested range

Screenshots

image

Version

Python-Version:3.8

opcua-asyncio Version (e.g. master branch, 0.9):at least 0.8.2 and above

Check the server and client in the attachment.
indexrange_issue.zip

I have identified a potential solution by changing:

  • server/address_space.py::AttributeService::read()
  • server/address_space.py::AddressSpace::read_attribute_value()
@schroeder- schroeder- added the enhancement New feature or request label Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants