-
Notifications
You must be signed in to change notification settings - Fork 189
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
Multiple devices #22
Comments
The second argument of You can add multiple devices by calling |
Okay, thank you very much! |
I get the same error when I run _example/example.go even though no other process listens to port 5353. At least this is what the Terminal command |
The error output comes from here |
Does this mean I can just ignore it, because it already listens on the IPv4 address? |
Yes |
@brutella How would I go about adding multiple devices dynamically if I have a list of switches in a slice? I'm new to Golang, and I'm not sure how I'll add a slice. For example, here is my code:
I want to be able to dynamically add accessories |
@srizzling You can just expand the slice with t, err := hc.NewIPTransport(config, nil, accs...) |
This should do the trick. t, err := hc.NewIPTransport(config, accs...) |
Ah cheers.. I should have probably read the slices doc. Thanks! |
How would one add multiple devices at once?
When I run
hap.NewIPTransport("00102003", sw.Accessory)
for every device, I get:The text was updated successfully, but these errors were encountered: