mikenemat / plum-probe

A tool to manage Plum LightPads without the iOS app
17 stars 5 forks source link

Doesn't work with multiple network interfaces #1

Closed ohmantics closed 6 years ago

ohmantics commented 7 years ago

A UDP broadcast to "all interfaces" really just goes over one. If the host has both ethernet and wifi, it may not find the light switches.

http://stackoverflow.com/questions/683624/udp-broadcast-on-all-interfaces covers some of it.

ohmantics commented 7 years ago

Looks like the netifaces package is suitable.

mikenemat commented 7 years ago

Thanks, this is really interesting. I can't say I've run into that issue myself, but I understand how it could be problematic. I'll take a crack at fixing it soon.

ghost commented 6 years ago

please do this quick

mikenemat commented 6 years ago

Resolving as a won't fix. I'd recommend enhancing it yourselves if you guys really need it to work. I don't have a test setup that matches this configuration.

You do not need to run this script in discovery/init mode more than once unless you change your LightPad layout. Just turn off the interfaces you don't need while doing the --init. After that, it won't be an issue.