View Single Post
Old December 5th, 2008, 11:46 AM   #8 (permalink)
Reagan
Admin
Reagan's CarPC Specs
 
Reagan's Avatar
 
Join Date: Oct 2004
Location: Atlanta, GA
Vehicle: 2002 Jetta 1.8T
Posts: 1,325
Blog Entries: 18
Reagan has a reputation beyond reputeReagan has a reputation beyond reputeReagan has a reputation beyond reputeReagan has a reputation beyond reputeReagan has a reputation beyond reputeReagan has a reputation beyond reputeReagan has a reputation beyond reputeReagan has a reputation beyond reputeReagan has a reputation beyond reputeReagan has a reputation beyond reputeReagan has a reputation beyond repute
FYI: Hey, i wanted to let you all know that there are some hidden commands for the CF WiFi plugin I added in when i originally wrote it.

You can query CF to get the current SSID, list of available networks, force search/refresh of network list. And of course, connect/disconnect to a new SSID, and enable/disable the adapter.

Accepted Commands:
eg CF_pluginCommand(string command, string param1, string param2)

CONNECT = CF_pluginCommand("CONNECT", <SSID_TO_CONNECT>", "");
DISCONNECT = CF_pluginCommand("DISCONNECT");
ENABLE ADAPTER = CF_pluginCommand("ENABLE"); // NOT AVAILABLE YET
DISABLE ADAPTER = CF_pluginCommand("DISABLE"); // NOT AVAILABLE YET

Accepted Data Commands:
eg CF_pluginData(string command, string param1)

AUTOCONNECT = CF_pluginData("AUTOCONNECT", "") returns string "true" or "false"
WIRELESSSTATUS= CF_pluginData("WIRELESSSTATUS", "") returns string "true" or "false" (for enabled or disabled)
NETWORKLIST = CF_pluginData("NETWORKLIST", <"SEARCH" or "REFRESH">) returns comma-separated list of available networks
CURRENTSSID = CF_pluginData("CURRENTSSID", "") returns string of current SSID

I added all of these when i saw the above APOI Netstumbler plugin last winter. If you can extract that NetStumbler data and use it in a plugin, you can make a nice NetStumbler plugin that works hand in hand with the CF WiFi native plugin.

Hope someone finds these useful.

Reagan
Reagan is online now   Reply With Quote
The Following User Says Thank You to Reagan For This Useful Post: