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

SMHE-1841: Make get/set WithList more efficient #1172

Merged
merged 4 commits into from
Feb 20, 2024

Conversation

stefanermens
Copy link
Contributor

@stefanermens stefanermens commented Feb 15, 2024

This PR updates the withListSupported property of a device to withListMax. This new property is the maximum amount of items in a request. The getWithList function in the DlmsHelper automatically divides the list of addresses in to sublists of the maximum amount. If only 1 address is provided or if withListMax is 1, then it will use a normal DLMS GetRequest instead of GetWithList.
The database is updated. All devices with withListSupported to false are set to withListMax = 1. All devices with withListSupported to true are set to withListMax = 32, which is the default that was already used.

Copy link

Copy link
Contributor

@harrymiddelburgetall harrymiddelburgetall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice change, two small remarks

@stefanermens stefanermens merged commit e64723f into development Feb 20, 2024
5 checks passed
@stefanermens stefanermens deleted the feature/SMHE-1841_WithList branch February 20, 2024 10:24
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.

2 participants