Hi,
I'm trying to make a connection with OOB information. I try to connect the 2 devices together (using public address, since I exchange them into the OOB information at first and to simplify things at first). Here my flow so far:
- Init devices
- Generate OOB data (hash, rand, BD_ADDR public) and exchange them on USB
- Upon receiving the OOB data and device address on each side, I add the address to the white list
- I start the advertissing the peripheral with ConnectableMode, public address with Direct_Address 0x000000000000
- I start the scan on the central with latPublic, fpWhiteList
- I receive the advertisse on the central, if the public address match the OOB address I try to connect with the GAP_LE_Create_Connection which return -517 (according to the BTErrors.h this is an HCI errors)
Here's the call parameters
GAP_LE_Create_Connection(BluetoothStackID, 100, 100, fpWhiteList, latPublic, &BD_ADDR, latPublic, &ConnectionParameters, getGAP_LE_Event_Callback(), 0); with connectionParamters: ConnectionParameters.Connection_Interval_Min = 50; ConnectionParameters.Connection_Interval_Max = 200; ConnectionParameters.Minimum_Connection_Length = 0; ConnectionParameters.Maximum_Connection_Length = 10000; ConnectionParameters.Slave_Latency = 0; ConnectionParameters.Supervision_Timeout = MINIMUM_LINK_SUPERVISION_TIMEOUT;
Not sure what is wrong or what should be done to fix this?