1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-25 22:12:29 +02:00
Files
OpenIntegrations/docs/en/md/RCON/Commands-execution/Create-connection.mdx

50 lines
1.2 KiB
Plaintext
Raw Normal View History

2025-03-16 21:02:16 +03:00
---
sidebar_position: 1
2025-05-05 10:07:34 +03:00
description: "Create Connection " 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';
# Create Connection
Opens a new RCON connection
`Function CreateConnection(Val ConnectionParams) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| ConnectionParams | - | Structure Of KeyAndValue | ✔ | Connection parameters. See FormConnectionParameters |
Returns: Arbitrary - Connector object or structure with error information
<br/>
:::caution
**NOCLI:** this method is not available in CLI version
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
URL = "127.0.0.1:25565";
Password = "Jg9F...";
WriteTimeout = 20;
ReadTimeout = 20;
ConnectionParams = OPI_RCON.FormConnectionParameters(URL, Password, ReadTimeout, WriteTimeout);
Result = OPI_RCON.CreateConnection(ConnectionParams);
```
2025-03-18 10:00:47 +03:00
```json title="Result"
NOT JSON: AddIn.OPI_RCON.Main
```