bluetooth lowenergy - Android BLE disconnects after bonding -


i'm developing 2 android ble applications. 1 app serve peripheral role , other app serve central role. on peripheral app, there 1 encrypted characteristic property_write , permission_write_encrypted.

the central app able connect peripheral , discover services. first time central attempts write encrypted characteristic, system begins bonding process , dialog entering pin appears. after pin entered correctly, characteristic can written successfully. if central disconnects peripheral , attempts reconnect, connection briefly established disconnected. onconnectionstatechange callback received on peripheral status of state_connected , called again status of state_disconnected.

unless manually unpair devices (from bluetooth settings) , start connection process again, central unable connect peripheral.

i've tried solution did not work me. ble device bonding remove automatically in android

both apps running on devices android 5.

this issue seems resolved in android 5.1.1. originally, running peripheral app on samsung galaxy tab android 5.0.2. switched nexus 9 running 5.1.1 , 6.0.1 , did not encounter issue described above.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -