Skip to content

Commit 12c22d1

Browse files
committed
esp32/bluetoot_docs.md: Updated for scan_start
1 parent c7f7574 commit 12c22d1

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

esp32/bluetooth_docs.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,26 @@ bluetooth.ble_settings(int_min = 1280, int_max = 1280,
123123
* For `bluetooth.SCAN_CMPL` this will be `None`.
124124
4. The `<callback_data` parameter from the `bluetooth.callback()` call.
125125

126-
`bluetooth.scan_start(<timeout in seconds>)` GATTC - begin scanning for hosts.
126+
`bluetooth.scan_start(timeout, scan_type = bluetooth.SCAN_TYPE_ACTIVE, own_addr_type = bluetooth.BLE_ADDR_TYPE_PUBLIC, scan_filter_policy = SCAN_FILTER_ALLOW_ALL, scan_interval = 0x50, scan_window = 0x30)` GATTC - begin scanning for hosts.
127+
128+
129+
`scan_type` is one of:
130+
* `network.SCAN_TYPE_ACTIVE`
131+
* `network.SCAN_TYPE_PASSIVE`
132+
133+
`own_addr_type` is one of:
134+
* `network.BLE_ADDR_TYPE_PUBLIC`
135+
* `network.BLE_ADDR_TYPE_RANDOM`
136+
* `network.BLE_ADDR_TYPE_RPA_PUBLIC`
137+
* `network.BLE_ADDR_TYPE_RPA_RANDOM`
138+
139+
`scan_filter_policy` is one of:
140+
* `network.SCAN_FILTER_ALLOW_ALL`
141+
* `network.SCAN_FILTER_ALLOW_ONLY_WLST`
142+
* `network.SCAN_FILTER_ALLOW_UND_RPA_DIR`
143+
* `network.SCAN_FILTER_ALLOW_WLIST_PRA_DIR`
144+
145+
127146

128147
`bluetooth.scan_stop()` GATTC - terminate scanning early. If called before the scan timeout, you will _not_ receive a `bluetooth.SCAN_CMPL` event.
129148

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy