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

[modbus] Modbus poolconfig handling #2199

Merged
merged 5 commits into from
Feb 14, 2021

Conversation

ssalonen
Copy link
Contributor

Small fixes and consistency improvements when utilizing default EndpointPoolConfiguration, i.e. creating newModbusCommunicationInterface with null configuration.

Note: this code path is never executed with real openHAB bindings as they always construct EndpointPoolConfiguration explicitly. openhab/openhab-addons#10147 ensures that all EndpointPoolConfiguration parameters have the correct defaults

Taking into consideration that we always have default
EndpointPoolConfiguration

Signed-off-by: Sami Salonen <ssalonen@gmail.com>
Signed-off-by: Sami Salonen <ssalonen@gmail.com>
Signed-off-by: Sami Salonen <ssalonen@gmail.com>
Signed-off-by: Sami Salonen <ssalonen@gmail.com>
Signed-off-by: Sami Salonen <ssalonen@gmail.com>
@ssalonen ssalonen requested a review from a team as a code owner February 14, 2021 11:39
Copy link
Member

@kaikreuzer kaikreuzer left a comment

Choose a reason for hiding this comment

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

lgtm, thanks!

@kaikreuzer kaikreuzer merged commit ebda155 into openhab:main Feb 14, 2021
@kaikreuzer kaikreuzer added the enhancement An enhancement or new feature of the Core label Feb 14, 2021
@kaikreuzer kaikreuzer added this to the 3.1 milestone Feb 14, 2021
splatch pushed a commit to ConnectorIO/copybara-hab-core that referenced this pull request Jul 11, 2023
* [modbus] More strict nullness annotations
Taking into consideration that we always have default
EndpointPoolConfiguration
* [modbus] Utilize default pool configuration consistently
* [modbus] Make (internal) ModbusCommunicationInterfaceImpl constr private
* [modbus] Handle null config of modbus comm when detecting open conns
* [modbus] default connection timeout of 10s with default pool config

Signed-off-by: Sami Salonen <ssalonen@gmail.com>
GitOrigin-RevId: ebda155
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature of the Core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants