BLE slave pair/bond flow


Theis Orthmann Blickfeldt Jørgensen (TTJO)
 

Hi,

 

I am currently trying to map our current BLE GAP API to Zephyr BT API, but I find it a little bit unclear how the pairing/bonding flow is supposed to work on the slave side.

 

From the sample-code it looks like you simply are supposed to enable BT and register the CB-functions. Then you will get connected-CB when a device has connected -> followed by a security_changed-CB when/if the master has paired with the slave. PLEASE CORRECT ME IF I AM WRONG OR MISSING STEPS!

 

But what is the slave-side use-case for bt_conn_create_slave_le(…), and where does it fit in process above?

 

Venlig hilsen/kind regards

Theis Orthmann Blickfeldt Jørgensen

Embedded Software Developer, M.Sc.EE.

 

Oticon A/S

Kongebakken 9

DK-2765 Smørum

 

ttjo@...

www.oticon.com