nerves-networking / vintage_net_wifi

WiFi networking for VintageNet
Apache License 2.0
32 stars 18 forks source link

Add configured?/1 #226

Closed mnishiguchi closed 7 months ago

mnishiguchi commented 7 months ago

This is an enhancement adding one convenience function that checks if a WLAN interface is already configured.

This check is used in at least a few Nerves-related projects, such as Circuits Quickstart and Nerves Livebook. Since the check is related to WLAN, it would be nice to place the decision-making logic for the check here in VintageNetWiFi.

What do you all think? 🤔

Here are some related commits:

There can be a better name for the function. configured? is kind of ambiguous...

fhunleth commented 7 months ago

I think this is a good idea. Let me think about the name a little bit later on today.