mirror of
https://github.com/nodemcu/nodemcu-firmware.git
synced 2025-01-30 21:12:55 +08:00
Change comments for wifi.sta.getap
This commit is contained in:
parent
a5fe3d0146
commit
353209fb4e
@ -599,9 +599,14 @@ static int wifi_station_setauto( lua_State* L )
|
|||||||
* scan and get ap list as a lua table into callback function.
|
* scan and get ap list as a lua table into callback function.
|
||||||
* Syntax:
|
* Syntax:
|
||||||
* wifi.sta.getap(function(table))
|
* wifi.sta.getap(function(table))
|
||||||
|
* wifi.sta.getap(format, function(table))
|
||||||
* wifi.sta.getap(cfg, function(table))
|
* wifi.sta.getap(cfg, function(table))
|
||||||
|
* wifi.sta.getap(cfg, format, function(table))
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* cfg: table that contains scan configuration
|
* 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
|
* function(table): a callback function to receive ap table when scan is done
|
||||||
this function receive a table, the key is the ssid,
|
this function receive a table, the key is the ssid,
|
||||||
value is other info in format: authmode,rssi,bssid,channel
|
value is other info in format: authmode,rssi,bssid,channel
|
||||||
|
Loading…
x
Reference in New Issue
Block a user