we try to connect from cyble-022001-00 to 3 or 4 cyble-022001-00 successively.
First : we build a array ( TONOFFC  ) with the mac addresses we want to connect to.
Second : we read the address in the array and setup the peer address after that we connect.
Third : We disconnect the ble . This code is managed in other condition because that doesn't work if it is in the previous condition.
See below a part of our code :
peerAddr.type = 0;
For the moment only the first device of the array is working. the while loop works correctly because each variable change.
But there is no connection to the second , third ... devices.
If somebody have any idea , please help us.
Nota : We already use this code for connect one cyble-022001-00 to another one and it works fine.
Are you not increamenting intTest variable in the code to select the necxt device.
Also please debug this by monitoring the return codes of the CyBle_GapcConnectDevice and CyBle_GapDisconnect APIs.
Also, keep looking for the CONNECT and DISCONNECT events in the callback handler