mpous / basicstation

LoRa Basics™ Station - The LoRaWAN Gateway Software
https://doc.sm.tc/station
59 stars 30 forks source link

adding Pi Zero without Ethernet mac address support #47

Closed mpous closed 2 years ago

mpous commented 2 years ago

This PR will add support to Raspberry Pi Zero W 1 and 2 that don't have Ethernet mac address to generate the EUI.

The source code to generate the default EUI was using eth0 or alphabetically the first one (usually balena0 was selected). However balena0 was a virtual interface and it was changing every time the device was restarted. Now I forced to select the last alphabetically, so it will select wlan0 if there is no eth0 interface.