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] Support for after connection delays #12642

Merged
merged 1 commit into from
May 7, 2022

Conversation

splatch
Copy link
Contributor

@splatch splatch commented Apr 22, 2022

Issue description in #12641 - allow to make an arbitrary delay after connection is made so device connected by rtu/tcp (both connection kinds are patched) can prepare their side for further communication.

@splatch splatch requested a review from ssalonen as a code owner April 22, 2022 18:29
Copy link
Contributor

@ssalonen ssalonen left a comment

Choose a reason for hiding this comment

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

Great contribution, this came up in the community forums (perhaps from you?). 👍

Some minor change requests

bundles/org.openhab.binding.modbus/README.md Outdated Show resolved Hide resolved
bundles/org.openhab.binding.modbus/README.md Outdated Show resolved Hide resolved
@ssalonen ssalonen added the enhancement An enhancement or new feature for an existing add-on label Apr 22, 2022
@ssalonen
Copy link
Contributor

CI build fails as expected since openhab-core is missing corresponding changes for modbus transport.

@splatch
Copy link
Contributor Author

splatch commented Apr 22, 2022

I addressed review comments on docs and configuration, also removed unrelated formatting changes put by editor. Lets wait for build server to see.

@jlaur jlaur linked an issue Apr 23, 2022 that may be closed by this pull request
@lolodomo lolodomo added rebuild Triggers Jenkins PR build and removed rebuild Triggers Jenkins PR build labels Apr 24, 2022
Copy link
Member

@wborn wborn left a comment

Choose a reason for hiding this comment

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

The default translations for these new options need to be provided.

@splatch
Copy link
Contributor Author

splatch commented Apr 24, 2022

The default translations for these new options need to be provided.

@wborn I don't see any of options in binding translated, so it is consistent with current way how binding works.

@ssalonen
Copy link
Contributor

@splatch
Copy link
Contributor Author

splatch commented Apr 25, 2022

My bad, I supposed there would be a %thing-type.config.modbus.serial.xyz value instead of text in XML descriptors, will adjust i18n.

@wborn wborn changed the title [modbus] Support for after connection delays. [modbus] Support for after connection delays Apr 26, 2022
bundles/org.openhab.binding.modbus/README.md Outdated Show resolved Hide resolved
bundles/org.openhab.binding.modbus/README.md Outdated Show resolved Hide resolved
@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/reading-data-from-huawei-inverter-sun-2000-3ktl-10ktl-via-modbus-tcp-and-rtu/87670/123

…ices.

Fixes openhab#12641.

Signed-off-by: Łukasz Dywicki <luke@code-house.org>
Copy link
Contributor

@lolodomo lolodomo left a comment

Choose a reason for hiding this comment

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

LGTM, thank you

@lolodomo lolodomo merged commit 7323b2e into openhab:main May 7, 2022
@lolodomo lolodomo added this to the 3.3 milestone May 7, 2022
andan67 pushed a commit to andan67/openhab-addons that referenced this pull request Nov 6, 2022
…ices. (openhab#12642)

Fixes openhab#12641.

Signed-off-by: Łukasz Dywicki <luke@code-house.org>
andrasU pushed a commit to andrasU/openhab-addons that referenced this pull request Nov 12, 2022
…ices. (openhab#12642)

Fixes openhab#12641.

Signed-off-by: Łukasz Dywicki <luke@code-house.org>
Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
psmedley pushed a commit to psmedley/openhab-addons that referenced this pull request Feb 23, 2023
…ices. (openhab#12642)

Fixes openhab#12641.

Signed-off-by: Łukasz Dywicki <luke@code-house.org>
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 for an existing add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[modbus] Support for an arbitrary delay after connection is made
5 participants