Connect 3 devices successively | Cypress Semiconductor
Connect 3 devices successively
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.