Any way to change the default timeout period for opening a BLE connection?
Posted: Wed Mar 07, 2018 1:15 pm
Hi,
When I call esp_ble_gattc_open in the client and the server is not available, it takes 30 seconds until I get an ESP_GATTC_DISCONNECT_EVT event followed by an ESP_GATTC_OPEN_EVT event with the status parameter being ESP_GATT_ERROR. During these 30 seconds I can't do anything else related to BLE such as scanning but time efficiency would be very important for me. Is it possible to reduce this period? It would be just as fine to cancel the open command when I want but I haven't found a way to do this.
When I call esp_ble_gattc_open in the client and the server is not available, it takes 30 seconds until I get an ESP_GATTC_DISCONNECT_EVT event followed by an ESP_GATTC_OPEN_EVT event with the status parameter being ESP_GATT_ERROR. During these 30 seconds I can't do anything else related to BLE such as scanning but time efficiency would be very important for me. Is it possible to reduce this period? It would be just as fine to cancel the open command when I want but I haven't found a way to do this.