balena-io-experimental / edge-node-manager

Resin uC edge-node-manager written in Go
Apache License 2.0
22 stars 6 forks source link

Refactor hotspot creation #159

Closed jbaldwinroberts closed 7 years ago

jbaldwinroberts commented 7 years ago

The ENM currently chooses the first free WiFi interface to use for the hotspot. This means the user must not configure a WiFi connection on the dashboard to ensure the interface is kept free.

To make this more flexible an env var will be created that allows the user to override this behavior when connected to Ethernet.

jbaldwinroberts commented 7 years ago

I decided to instead have the following behaviour:

If ethernet is connected, create the hotspot on the first wifi interface found
If ethernet is not connected, create the hotspot on the first FREE wifi interface found