← index #7769PR #7921
Likely Duplicate · high · value 0.130
QUERY · ISSUE

How to set BLE connection interval?

openby jd3096-mpyopened 2021-09-10updated 2021-09-16
extmod

SO,how to set BLE connection interval?
when the devices are connected,i want to save more power,so i want to increase the conncetion interval ,but i can't find how to redefine this param.
adv and scan interval is easily to set,i can't find the way to set connnection interval
i notice that IRQ has this event:
elif event == _IRQ_CONNECTION_UPDATE:
conn_handle, conn_interval, conn_latency, supervision_timeout, status = data
how to update connection,to change conn_interval, conn_latency, supervision_timeout

CANDIDATE · PULL REQUEST

extmod/modbluetooth.c: Add connection interval to gap_connect.

closedby jimmoopened 2021-10-22updated 2021-10-25
extmod

Just forwards through directly to the NimBLE and BTStack connect functions.

MicroPython doesn't currently have a way to obtain the connection interval, so tested (on unix+nimble and pybd+btstack) by logging the connection interval during connection.

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