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

Edge Driver: Two-way communication #4

Open
weimeng opened this issue Oct 9, 2022 · 0 comments
Open

Edge Driver: Two-way communication #4

weimeng opened this issue Oct 9, 2022 · 0 comments

Comments

@weimeng
Copy link
Owner

weimeng commented Oct 9, 2022

Two-way communication for Edge driver is currently blocked because there's no way to listen for UDP broadcasts on port 31415:

Calls to tcp.bind or udp.setsockname may only specify port 0 to be assigned a port randomly, unless you are binding to a multicast IP address and have already set the reuseaddr socket option to true. This is to prevent unexpected collisions between drivers trying to bind to the same port. We’re looking into ways to allow binding to stable port numbers in a way that prevents conflicts, but don’t have solid plans yet.

https://community.smartthings.com/t/smartthings-edge-developer-beta-known-issues-and-bug-tracking/230389

This might be a good reference for the future: https://community.smartthings.com/t/solved-edge-need-help-to-implement-udp-server-with-cosock/240726/2

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

No branches or pull requests

1 participant