-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
feat(inputs.knx_listener): support TCP as transport protocol #11759
Conversation
alexander-zimmermann
commented
Sep 4, 2022
- [ x] Updated associated README.md.
- Wrote appropriate unit tests.
- [ x] Pull request title or commits are in conventional commit format
@@ -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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## 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 😉
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## TCP is currently only in tunnel mode supported. | |
## TCP is only supported in tunnel mode. |
Will create a new one w/ the proposed changes |
Hi! |
@farmio thanks for the hint. I didn't know that. Will do it next time ;-) |