Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

Smart Bluetooth Forum Discussions

Anonymous
Not applicable

emconninfo_deviceBonded returns a true result, __find_bonded_peer returns a false result. What gives? Shouldn't they both return true?

0 Likes
1 Solution
Anonymous
Not applicable

Hello Paul,

1.  The emconninfo_deviceBonded and find_bonded_peer are entirely different things.

2.  emconninfo_deviceBonded() returns true if the peer device that it is connected to is bonded with it or not
(see the BLE Spec for the exact definition for bonded).

3.  However, you could be connected but not bonded, and you could be bonded but not connected.

4.__find_bonded_peer() returns the host info structure given a bd_addr (retrieved from the NV).

Hope this helps,

Thanks
JT

View solution in original post

1 Reply
Anonymous
Not applicable

Hello Paul,

1.  The emconninfo_deviceBonded and find_bonded_peer are entirely different things.

2.  emconninfo_deviceBonded() returns true if the peer device that it is connected to is bonded with it or not
(see the BLE Spec for the exact definition for bonded).

3.  However, you could be connected but not bonded, and you could be bonded but not connected.

4.__find_bonded_peer() returns the host info structure given a bd_addr (retrieved from the NV).

Hope this helps,

Thanks
JT