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

Fix device polling when using ReadProperty class instead of ReadPropertyMultiple #229

Conversation

gnmerritt
Copy link
Contributor

Looks like ReadProperty and ReadPropertyMultiple differ in their implied signatures for the read_multiple method currently - RPM works with a list of point names but RP fails with an error (e.g. Unknown object type : METER) if you pass in a point name.

This PR updates the two to behave the same, which fixes device polling for me on a network where segmentation isn't supported.

@coveralls
Copy link

coveralls commented Nov 18, 2020

Coverage Status

Coverage decreased (-0.3%) to 46.724% when pulling aada604 on gnmerritt:fix-readproperty-read-multiple into e7c4805 on ChristianTremblay:master.

@ChristianTremblay ChristianTremblay changed the base branch from master to develop November 18, 2020 01:49
@ChristianTremblay
Copy link
Owner

Seems like a good catch. When device is defined as RP, it's because it doesn't support read_multiple... or segmentation. A restriction that is following me from the beginning... Hope someday I'll be able to fix this in a better way.

In this context, calling read_multiple will generate multiple single reads...

@ChristianTremblay ChristianTremblay merged commit de367f0 into ChristianTremblay:develop Nov 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants