Hi,
In softDevice S120 can we make second sd_ble_gap_connect on different peer, without waiting confirmation connect of the first one ?
Bests Regards, Jérôme
Hi,
In softDevice S120 can we make second sd_ble_gap_connect on different peer, without waiting confirmation connect of the first one ?
Bests Regards, Jérôme
Hi
You should not start scanning for a new peripheral unless a connection establishment is complete with a current peripheral. The connection establishment is complete when you get a CONNECTED event from the softdevice, so start scanning before that is not recommended. I am not sure what will happen if you start scanning before the CONNECTED event arrives, but at least it is a risk for things to go wrong.
Hi,
Is it a s120 limitation or a Bluetooth specification limitation ?
Bests regards,
The timing requirements for setting up and validating a connection is very strict, so the scanner is reserved when the initiator is looking for a valid device to connect to. If you want to connect to multiple known devices, but you do not care which order, you can use the whitelist feature. If not, you will have to connect one by one. Generally, the connection setup for 8 devices should be fairly short (<300ms) as long as the advertisers aren't corrupting eachother on the air.