1 Reply Latest reply on Mar 25, 2015 11:49 AM by jota_1939431

    __find_bonded_peer vs emconninfo_deviceBonded

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

        • 1. Re: __find_bonded_peer vs emconninfo_deviceBonded

          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