I was wondering if it possible to configure the BLE stack so that a call to GAP_EstablishLinkRequest times out after a set number of seconds if it can't make a connection. At the moment it seems that the GAP_EstablishLinkRequest sits there forever until it is able to connect to the device and then sendsGAP_LINK_ESTABLISHED_EVENT. I would like if the GAP_LINK_ESTABLISHED_EVENT is send after a timeout and with a timout error
I want to connect to two slaves simultaneously, and if I call GAP_EstablishLinkRequest twice for each device the second call fails. It seems I have to wait for the first one to connect and then call GAP_EstablishLinkRequest for the second device. The problem is now when I call GAP_EstablishLinkRequest for the first device and this device is not reachable, then it sits there forever and I can't connect to the second device until the first one is connected. Any help would be very much appreciated.
Regards
Reto