← index #444Issue #7008
Related · high · value 3.885
QUERY · ISSUE

the aioble raise AttributeError: 'BLE' object has no attribute l2cap_listen on esp32

openby jesses2025smithopened 2021-09-06updated 2021-09-06

Please see the title

2 comments
jesses2025smith · 2021-09-06

the esp32 fireware: esp32spiram-20210902-v1.17.bin

jimmo · 2021-09-06

Please see https://docs.micropython.org/en/latest/library/bluetooth.html#l2cap-connection-oriented-channels

l2cap isn't (yet) supported on esp32.

CANDIDATE · ISSUE

esp32: 'BLE' object has no attribute 'gap_pair'

closedby z7jzkopened 2021-03-10updated 2022-07-22
enhancementport-esp32

Generic ESP32 implementation. Tried on both v1.14 esp32-idf4-20210202-v1.14.bin and v1.14-unstable latest esp32-20210310-unstable-v1.14-84-g59a129f22.bin.

self._ble.gap_pair(self._conn_handle)

yields error:

AttributeError: 'BLE' object has no attribute 'gap_pair'

Is gap_pair(conn_handle,/) ready to use yet? I'm having issues in re-connecting to my bluetooth device as I need to pair it to add to trusted devices (connecting alone doesn't seem adequate).

ubluetooth — low-level Bluetooth: gap_pair

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied