Change Wi-Fi programmatically


This project is awesome!

I’m building a player box as a present, and I want to add a capability of changing wi-fi settings with an nfc card.
I receive the settings on RPi end, and start reconnecting.

However after restart the box reverts to the settings that are in the config file.

How can I make it skip that config file, but use the system wlan0 profile?


If there are wifi settings defined in settings.ini it will copy those into /etc/wpa.conf on every boot. Remove the wifi settings from settings.ini to stop it doing that.

Thank you so much!

Will try soon.