brata-hsdc / brata

Automatically exported from code.google.com/p/brata
2 stars 0 forks source link

Make network interface configurable #42

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Network interface is currently hardcoded to "wlan0" in connection.py; need to 
move this out to the config file.

Original issue reported on code.google.com by @jawaad-ahmad on 1 Feb 2015 at 11:06

GoogleCodeExporter commented 9 years ago
Why does it need to know the interface name at all?

Original comment by @ellerychan on 6 Feb 2015 at 3:24

GoogleCodeExporter commented 9 years ago
When a wifi dongle is connected, there is an existing "eth0" interface and a 
new "wlan0" interface available. Most configurations use wlan0 to connect; 
however, there are some development configurations in which the Pi is directly 
connected to a laptop over Ethernet.

I heard mentioned to look for wlan0 and try it, and then fallback to eth0 in 
case wlan0 fails. This seems nice as well so we don't need to edit the config 
file.

Original comment by @jawaad-ahmad on 7 Feb 2015 at 5:43

GoogleCodeExporter commented 9 years ago
Sorry, I forgot.  I think I made that suggestion.

Might as well add a cmd line option for it, too.

Original comment by @ellerychan on 7 Feb 2015 at 8:52

GoogleCodeExporter commented 9 years ago

Original comment by @jawaad-ahmad on 18 Feb 2015 at 11:28

GoogleCodeExporter commented 9 years ago

Original comment by @jawaad-ahmad on 18 Feb 2015 at 11:35