Disable bluetooth Low Energy bonding 30 second timeout in Android -


i have ble peripheral in "just works" encryption mode.
after bonding using bluetoothgatt.getdevice().createbond() , there seems 30 second interval after bonding complete (measured message reception in action_bond_state_changed receiver) during bluetoothgatt.disconnect() not disconnect. i'd disable or decrease 30 second interval. i'm guessing interval related period pin entry, using works encryption no pin necessary (or requested android).

to summarize in pseudo-code:

bluetoothgatt.getdevice().createbond(); .... //bonding successful reported action_bond_state_changed broadcast receiver bluetoothgatt.disconnect(); ... //30 seconds after disconnect call peripheral disconnects //note if wait 10 seconds before calling disconnect, peripheral disconnects 20 s later, if wait 15 s, disconnect occurs 15s later, etc... 


Comments

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

The canvas has been tainted by cross-origin data in chrome only -