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

feat(inputs.knx_listener): support TCP as transport protocol #11759

Closed
wants to merge 2 commits into from
Closed

feat(inputs.knx_listener): support TCP as transport protocol #11759

wants to merge 2 commits into from

Conversation

alexander-zimmermann
Copy link
Contributor

  • [ x] Updated associated README.md.
  • Wrote appropriate unit tests.
  • [ x] Pull request title or commits are in conventional commit format

@telegraf-tiger telegraf-tiger bot added feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins labels Sep 4, 2022
@@ -17,6 +17,11 @@ underlying "knx-go" project site (<https://github.com/vapourismo/knx-go>).
## Address of the KNX-IP interface.
service_address = "localhost:3671"

## Used transport protocol.
## Can be either "UDP" (default) or "TCP".
## TCP is currently only in tunnel mode supported.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
## TCP is currently only in tunnel mode supported.
## TCP is only supported in tunnel mode.

There is no TCP routing (multicast), so this is not going to change 😉

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OMG... Shame on me :-)

if err != nil {
return err
}
kl.client = &c
case "router":
c, err := knx.NewGroupRouter(kl.ServiceAddress, knx.DefaultRouterConfig)
if kl.ServiceProto == "TCP" {
return fmt.Errorf("TCP is currently not supported in router configuration")
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
return fmt.Errorf("TCP is currently not supported in router configuration")
return fmt.Errorf("TCP is not supported in router configuration")

@@ -7,6 +7,11 @@
## Address of the KNX-IP interface.
service_address = "localhost:3671"

## Used transport protocol.
## Can be either "UDP" (default) or "TCP".
## TCP is currently only in tunnel mode supported.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
## TCP is currently only in tunnel mode supported.
## TCP is only supported in tunnel mode.

@alexander-zimmermann
Copy link
Contributor Author

Will create a new one w/ the proposed changes

@farmio
Copy link
Contributor

farmio commented Sep 5, 2022

Hi!
You may just push a new commit to your branch and the PR will update.
If you like the change suggestions you can even just commit them directly from GitHub 😉

@alexander-zimmermann
Copy link
Contributor Author

@farmio thanks for the hint. I didn't know that. Will do it next time ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants