BT BLE multi server, the client is not able to connect to the servers if one goes down (OFF)

Hi all,
first of all, I want to say to you it is the first time that I develop BT BLE.
My goal is:

  • Having 4 servers with same Service and same Characteristic (M5Stick-C plus)
  • Having 1 client (M5Paper)

The client is connected to one server at a time, so my firmware has a state machine to cycle on every server, the logic is (in brief).

1 Connect to a server
2 Read data
3 Disconnect the server
4 return to the 1 step

All work well until I turn off a server, from this moment the client is not able to connect to other servers (they are on).

I have this error:
connect(): esp_ble_gattc_app_register_error: rc=128

Thank in advance
CP71

Hi All,
I have been too optimistic, I have set a timeout too small for connect, with a bigger timeout all seem to work well.

I don't understand why a smaller timeout seems to work well until I turn off a server.