bluetooth lowenergy - How do I confirm bonding is completed before proceeding in an Android program -




now, title question may sound bit nonsensical hear me out:

i want use phone connect ble device. connection kind of supposed encrypted bonding must.

the thing is, program used work in non-bonding relation ble device, seems "rush" operate on relevant characteristics before bonding complete.

and how bonding done: ble device prompt message on phone , ask me enter password (which know, duh).

and problem, before finish entering password, app said, "rushes" operating characteristics managed enumerate, causes either unknown gatt error 133, or error 5 insufficient privilege.

now, afaik, possible discover before bonding need bond in order something, write , read? . might explain why whole "rush" phenomena exists in first place.

my question is, how set flag or use function somewhere wait bonding finish, before proceeding further?





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -