I found the example that shows you how to connect to the Yun and have it connect to a WiFi network by specifying it in a browser.
But how do I connect to a WiFi network myself, from a program?
Maybe I should explain how I want this to work, perhaps it already does most of what I want.
The first time you turn on the Yun, it acts as an access point, using an SSID that I specify. I know it will work as an access point, but can I change the SSID that it will show?
You connect to the Yun's access point from a computer, and fire up a browser to configure it. It already does this too, but can I modify the URL of the web page, and modify the web page it serves up?
The user configures the Yun on the web page to connect to their own network. The YUN stops acting like an access point, and starts acting like a device on another network (specified by the user). It already does all this.
You power down the YUN, and power it back up. Will it still reconnect to the network specified in 3? Or do I need to remember the network and connect manually (hence my original question).
You want to connect to another network. You do this by hitting a reset button on the YUN, which resets it back to the mode it was in in step 1. Can you programatically set it back to ground 0, where it acts like an access point?
The first time you turn on the Yun, it acts as an access point, using an SSID that I specify. I know it will work as an access point, but can I change the SSID that it will show?
Your question is not clear. The 1st time the Yùn acts as a server to allow configuration. There is not internet access behind that and there is no need to change the SSID.
You connect to the Yun's access point from a computer, and fire up a browser to configure it. It already does this too, but can I modify the URL of the web page, and modify the web page it serves up?
Once again no internet access behind the initial configuration. This is just to setup up your own configuration.
The user configures the Yun on the web page to connect to their own network. The YUN stops acting like an access point, and starts acting like a device on another network (specified by the user). It already does all this.
Once you are done with your own configuration, the YÙn will remember it and connets to it automatically after the reboot.
You power down the YUN, and power it back up. Will it still reconnect to the network specified in 3? Or do I need to remember the network and connect manually (hence my original question).
Yes it will.
You want to connect to another network. You do this by hitting a reset button on the YUN, which resets it back to the mode it was in in step 1. Can you programatically set it back to ground 0, where it acts like an access point?
That's not clear to me what you are asking in here.
Thanks for the response. I just noticed it now. For some reason I can't configure my account to email me when there is a post on a thread I subscribed to.
Ok, so to clear up the confusion...
What you are calling "server" mode is what I'm calling "access point". Same thing. I'm not talking about connecting to the Internet, I'm talking about when you connect to the web page the Yun serves up so you can configure it. What I want to do is to modify the Yun so that when it is in server mode, it has an ssid that I configure it to have. Even after you reset it. I'm sure there is a way to do this. I can figure it out if there is any documentation on the Linux server on it - is there?