Does anyone have information on how to actually connect to a wireless network through code? I'm trying to setup a program that compares the SSID/BSSID against a safe-list (networks I'm allowed to use) and the picks the one with highest SNR OR simply monitors all that it can connect to. The only problem that I'm having is that I can't for the life of me figure out how to connect to a network or change networks

. Any help is appreciated.