Peter Gregory
unread,Jul 24, 2015, 2:38:10 PM7/24/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to BeagleBoard
I'm adding WiFi support for an application I'm writing in mono C#.
I'm using command line applications to interface with the wicd daemon for network detection and configuration.
My goal is to get basic functionality to configure the wifi interfaces to
detect wifi connection points
select the active wifi connection and persist it so it will connect automatically on reboot
save several wifi connections and automatically connect when detected in different locations.
I've solved a lot of the issues for command line wifi interactions:
iwconfig - shows the current wifi connection
iwlist scanning - shows all detected wifi connections & encryption information
wicd-cli - Python script for configuring / adding new connections (also can scan & configure)
I shell out to the programs and redirect the stdout to my program to get the current wifi status, list possible connections.
The configuration part needs to persist and save to the wicd configuration file for re-connect on reboot.
Here is my problem, wicd-cli is a Python script and requires a command shell to run.
I can get around that by running python and the executable and pass the script as an argument.
However, it still fails. I think wicd-cli shells out to other scripts and will only work from the command line, not started as a process from mono C#.
So, I need to use iwconfig to add new connections and persist to the configuration file to re-connect on boot.
Is there a way to do this with iwconfig from the command line?