|
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
|