GAP_ConnSetIdleTimeout() function
* Function GAP_ConnSetIdleTimeout * Description Higher layers call this function to set the idle timeout for * a connection, or for all future connections. The "idle timeout" * is the amount of time that a connection can remain up with * no L2CAP channels on it. A timeout of zero means that the * connection will be torn down immediately when the last channel * is removed. A timeout of 0xFFFF means no timeout. Values are * in seconds. * Parameters: handle - Handle of the connection * timeout - in secs * 0 = immediate disconnect when last channel is removed * 0xFFFF = no idle timeout * Returns BT_PASS - config process started * GAP_ERR_BAD_HANDLE - invalid handle