2025-03-16 21:02:16 +03:00
---
sidebar_position: 3
2025-05-05 11:15:20 +03:00
description: Form connection parameters and other functions to work with RCON in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
2025-05-05 09:49:19 +03:00
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, RCON]
2025-03-16 21:02:16 +03:00
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Form connection parameters
Forms a collection of connection parameters
`Function FormConnectionParameters(Val URL, Val Password, Val ReadTimeout = 30, Val WriteTimeout = 30) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| URL | --url | String | ✔ | Server URL |
| Password | --pass | String | ✔ | Password for connection |
| ReadTimeout | --rtout | Number | ✖ | Response timeout (in seconds) |
| WriteTimeout | --wtout | Number | ✖ | Request sending timeout (in seconds) |
Returns: Structure Of KeyAndValue - Structure of connection parameters
<br/>
```bsl title="1C:Enterprise/OneScript code example"
2025-06-29 14:35:33 +03:00
URL = "127.0.0.1:25565";
Password = "12We...";
2025-03-16 21:02:16 +03:00
WriteTimeout = 20;
ReadTimeout = 20;
Result = OPI_RCON.FormConnectionParameters(URL, Password, ReadTimeout, WriteTimeout);
```
2025-03-18 11:35:12 +03:00
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint rcon FormConnectionParameters \
2025-07-04 23:24:42 +03:00
--url "127.0.0.1:25575" \
2025-03-18 11:35:12 +03:00
--pass "***" \
--wtout 20 \
--rtout 20
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint rcon FormConnectionParameters ^
2025-07-04 23:24:42 +03:00
--url "127.0.0.1:25575" ^
2025-03-18 11:35:12 +03:00
--pass "***" ^
--wtout 20 ^
--rtout 20
```
</TabItem>
</Tabs>
2025-03-16 21:02:16 +03:00
2025-03-18 10:00:47 +03:00
```json title="Result"
{
"url": "127.0.0.1:25565",
"password": "***",
"read_timeout": 20,
"write_timeout": 20
}
```