Hi,
I am trying to build an application for nRF51DK which would continuously collect data from multiple BLE devices. Since there is no example for multiple connections application anywhere, I decided to start from zephyr/samples/bluetooth/central_hr - as the board will play central role in the architecture, and I do have two devices with Heart Rate service. I modified is slightly so that after creating first connection it starts scanning again and looks for another HR sensor. When it finds it it tries to create second connection.
I tried to simply create two bt_conn structures and call bt_conn_le_create() twice, each time after receiving advertisement from HR sensor. However, in this case when trying to create second connection, bt_conn_le_create() returns -12 error.
I am aware of the SoftDevice which should make it possible for the board to establish more than one connection. However I am not exactly sure how to implement the softdevice, and my knowledge is not sufficient to tell what exactly softdevice is. I am working on 1.3.0 SDK and I use Segger Studio to upload my application.
My question is - what is the "required" algorithm for establishing multiple BLE connections - from one central to many peripherals (star network)? Should multiple bt_conn_le_create() calls be enough? Or something in between has to happen?
Regards
Maciek