I have created a c# app that runs in the mono environment on Raspberry Pi OS. This app is meant to run as a kiosk and we don't want to expose either the desktop or the cli to the user.
In this app we issue the following command to get a list of available wireless connections.
I then allow the user to choose one of the connections and enter the password for it. Once I have these values,
Code: Select all
sudo iwlist wlan0 scanning | grep ESSID
1. How can I confirm the password is correct for the connection?
2. What do I need to do to set the connection as the default on startup?
I have read many sites that say I need to rewrite wpa_supplicant.conf, but when I do, it seems to disable the wireless completely, or at the very least, make the pi unable to find any wireless connections.
Any help here would be greatly appreciated.
ps, I don't think this is a mono or c# issue. I'm just not sure what file I need to write to to make this happen.