Commit 007f870c authored by Marcel Stör's avatar Marcel Stör
Browse files

Fix list indentation

parent 2b897e56
...@@ -582,7 +582,6 @@ wifi.sta.getap(scan_cfg, 1, listap) ...@@ -582,7 +582,6 @@ wifi.sta.getap(scan_cfg, 1, listap)
Get index of current Access Point stored in AP cache. Get index of current Access Point stored in AP cache.
#### Syntax #### Syntax
`wifi.sta.getapindex()` `wifi.sta.getapindex()`
...@@ -620,11 +619,8 @@ Get information of APs cached by ESP8266 station. ...@@ -620,11 +619,8 @@ Get information of APs cached by ESP8266 station.
- `qty` quantity of APs returned - `qty` quantity of APs returned
- `1-5` index of AP. (the index corresponds to index used by [`wifi.sta.changeap()`](#wifistachangeap) and [`wifi.sta.getapindex()`](#wifistagetapindex)) - `1-5` index of AP. (the index corresponds to index used by [`wifi.sta.changeap()`](#wifistachangeap) and [`wifi.sta.getapindex()`](#wifistagetapindex))
- `ssid` ssid of Access Point - `ssid` ssid of Access Point
- `pwd` Password for Access Point - `pwd` password for Access Point, `nil` if no password was configured
- If no password was configured, the `pwd` field will be `nil` - `bssid` MAC address of Access Point, `nil` if no MAC address was configured
- `bssid` MAC address of Access Point
- If no MAC address was configured, the `bssid` field will be `nil`
#### Example #### Example
```lua ```lua
...@@ -691,16 +687,15 @@ Gets the WiFi station configuration. ...@@ -691,16 +687,15 @@ Gets the WiFi station configuration.
#### Returns #### Returns
If `return_table` is `true`: If `return_table` is `true`:
- `config_table` - `config_table`
- `ssid` ssid of Access Point. - `ssid` ssid of Access Point.
- `pwd` password to Access Point. - `pwd` password to Access Point, `nil` if no password was configured
- If no password was configured, the `pwd` field will be `nil` - `bssid` MAC address of Access Point, `nil` if no MAC address was configured
- `bssid` MAC address of Access Point
- If no MAC address was configured, the `bssid` field will be `nil`
If `return_table` is `false`: If `return_table` is `false`:
- ssid, password, bssid_set, bssid
- Note: If `bssid_set` is equal to `0` then `bssid` is irrelevant, - ssid, password, bssid_set, bssid, if `bssid_set` is equal to `0` then `bssid` is irrelevant
#### Example #### Example
...@@ -739,16 +734,15 @@ Gets the default WiFi station configuration stored in flash. ...@@ -739,16 +734,15 @@ Gets the default WiFi station configuration stored in flash.
#### Returns #### Returns
If `return_table` is `true`: If `return_table` is `true`:
- `config_table` - `config_table`
- `ssid` ssid of Access Point. - `ssid` ssid of Access Point.
- `pwd` password to Access Point. - `pwd` password to Access Point, `nil` if no password was configured
- If no password was configured, the `pwd` field will be `nil` - `bssid` MAC address of Access Point, `nil` if no MAC address was configured
- `bssid` MAC address of Access Point
- If no MAC address was configured, the `bssid` field will be `nil`
If `return_table` is `false`: If `return_table` is `false`:
- ssid, password, bssid_set, bssid
- Note: If `bssid_set` is equal to `0` then `bssid` is irrelevant, - ssid, password, bssid_set, bssid, if `bssid_set` is equal to `0` then `bssid` is irrelevant
#### Example #### Example
...@@ -1125,19 +1119,18 @@ Gets the current SoftAP configuration. ...@@ -1125,19 +1119,18 @@ Gets the current SoftAP configuration.
#### Returns #### Returns
If `return_table` is true: If `return_table` is true:
- `config_table` - `config_table`
- `ssid` Network name - `ssid` Network name
- `pwd` Password - `pwd` Password, `nil` if no password was configured - `auth` Authentication Method (`wifi.OPEN`, `wifi.WPA_PSK`, `wifi.WPA2_PSK` or `wifi.WPA_WPA2_PSK`)
- If no password was configured, the `pwd` field will be `nil`
- `auth` Authentication Method (`wifi.OPEN`, `wifi.WPA_PSK`, `wifi.WPA2_PSK` or `wifi.WPA_WPA2_PSK`)
- `channel` Channel number - `channel` Channel number
- `hidden` `false` = not hidden, `true` = hidden - `hidden` `false` = not hidden, `true` = hidden
- `max` Maximum number of client connections - `max` Maximum number of client connections
- `beacon` Beacon interval - `beacon` Beacon interval
If `return_table` is false: If `return_table` is false:
ssid, password
Note: If bssid_set is equal to 0 then bssid is irrelevant - ssid, password, if `bssid_set` is equal to 0 then `bssid` is irrelevant
#### Example #### Example
...@@ -1173,19 +1166,18 @@ Gets the default SoftAP configuration stored in flash. ...@@ -1173,19 +1166,18 @@ Gets the default SoftAP configuration stored in flash.
#### Returns #### Returns
If `return_table` is true: If `return_table` is true:
- `config_table` - `config_table`
- `ssid` Network name - `ssid` Network name
- `pwd` Password - `pwd` Password, `nil` if no password was configured - `auth` Authentication Method (`wifi.OPEN`, `wifi.WPA_PSK`, `wifi.WPA2_PSK` or `wifi.WPA_WPA2_PSK`)
- If no password was configured, the `pwd` field will be `nil`
- `auth` Authentication Method (`wifi.OPEN`, `wifi.WPA_PSK`, `wifi.WPA2_PSK` or `wifi.WPA_WPA2_PSK`)
- `channel` Channel number - `channel` Channel number
- `hidden` `false` = not hidden, `true` = hidden - `hidden` `false` = not hidden, `true` = hidden
- `max` Maximum number of client connections - `max` Maximum number of client connections
- `beacon` Beacon interval - `beacon` Beacon interval
If `return_table` is false: If `return_table` is false:
ssid, password
Note: If bssid_set is equal to 0 then bssid is irrelevant - ssid, password, if `bssid_set` is equal to 0 then `bssid` is irrelevant
#### Example #### Example
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment