From 353209fb4eaca26b4659984d5c252bfb130fb26b Mon Sep 17 00:00:00 2001 From: dnc40085 Date: Sun, 31 May 2015 22:45:43 -0700 Subject: [PATCH] Change comments for wifi.sta.getap --- app/modules/wifi.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/modules/wifi.c b/app/modules/wifi.c index 89c2db10..b796babb 100644 --- a/app/modules/wifi.c +++ b/app/modules/wifi.c @@ -599,9 +599,14 @@ static int wifi_station_setauto( lua_State* L ) * scan and get ap list as a lua table into callback function. * Syntax: * wifi.sta.getap(function(table)) + * wifi.sta.getap(format, function(table)) * wifi.sta.getap(cfg, function(table)) + * wifi.sta.getap(cfg, format, function(table)) * Parameters: * cfg: table that contains scan configuration + * Format:Select output table format. + * 0 for the old format (SSID : Authmode, RSSI, BSSID, Channel) (Default) + * 1 for the new format (BSSID : SSID, RSSI, Authmode, Channel) * function(table): a callback function to receive ap table when scan is done this function receive a table, the key is the ssid, value is other info in format: authmode,rssi,bssid,channel