esp_bt_gap_set_page_timeout() function
Set the page timeout esp_bt_gap_cb_t will be called with ESP_BT_GAP_SET_PAGE_TO_EVT after set page timeout ends. The value to be set will not be effective util the next page procedure, it's suggested to set the page timeout before initiating a connection.
Arguments
page_to
Page timeout, the maximum time the master will wait for a Base-band page response from the remote device at a locally initiated connection attempt. The valid range is 0x0016 ~ 0xffff, the default value is 0x2000, unit is 0.625ms.
Return value
- ESP_OK: success - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled - other: failed