Commit b3ec03e1 authored by devsaurus's avatar devsaurus
Browse files

fix i2c and wifi doc formatting

parent 2b98037f
......@@ -213,7 +213,8 @@ Connects to the configured AP in station mode. You only ever need to call this i
Disconnects from AP in station mode.
!!! note
!!! note
Please note that disconnecting from Access Point does not reduce power consumption much.
If power saving is your goal, please use [`wifi.stop()`](#wifisetmode).
......@@ -252,6 +253,7 @@ Registers callbacks for WiFi station status events.
the event.
Event information provided for each event is as follows:
- `start`: no additional info
- `stop`: no additional info
- `connected`: information about network/AP that was connected to:
......@@ -334,6 +336,7 @@ Scan for available networks.
- `callback(ap_list)` a callback function to receive the list of APs when the scan is done. Each entry in the returned array follows the format used for [`wifi.sta.config()`](#wifistaconfig), with some additional fields.
The following fields are provided for each scanned AP:
- `ssid`: the network SSID
- `bssid`: the BSSID of the AP
- `channel`: primary WiFi channel of the AP
......@@ -385,7 +388,6 @@ function can be used.
- `hidden` false = not hidden, true = hidden, default = false
- `max` maximum number of connections 1-4 default=4
- `beacon` beacon interval time in range 100-60000, default = 100
- `save` save configuration to flash.
- `true` configuration **will** be retained through power cycle. (Default)
- `false` configuration **will not** be retained through power cycle.
......@@ -422,6 +424,7 @@ Registers callbacks for WiFi AP events.
the event.
Event information provided for each event is as follows:
- `start`: no additional info
- `stop`: no additional info
- `sta_connected`: information about the client that connected:
......
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