---
title: "IOT (Input agent)"
slug: "profiles--entry-tab-2-iot"
updated: 2026-09-15T06:36:42Z
published: 2026-09-15T06:36:42Z
canonical: "docs.lobstersoftware.com/profiles--entry-tab-2-iot"
---
> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt
> Use this file to discover all available pages before exploring further.
# IOT (Input agent)
This Input agent enables communication via OPC UA. Lobster Integration can act either as an OPC UA client (subscription model) or as an OPC UA server.
## Enable services
Add the client and/or server service to `./etc/factory.xml` depending on the role:
```xml
...
com.ebd.hub.services.iot.IoTServerService
etc/iotserver.xml
com.ebd.hub.services.iot.IoTClientService
etc/iotclient.xml
...
```
## Subscription model (client)
Lobster Integration acts as an OPC UA client and subscribes to values from a server.
### Create the configuration file
Create `./etc/iotclient.xml`. Each alias describes a connection to an OPC UA server:
```xml
false
boiler
opc.tcp://opcua.demo-this.com:51210/UA/SampleServer
4
4
true
```
### GUI

(1) **Connection alias:** At least one alias must be defined in the configuration file (see above) for the subscription model to be selectable.
(2) **Subscription values:** Selectable in the OPC UA browser via the context menu. A change to any of these values triggers the Profile (see also (4)). The read values (3) are queried along with the trigger.
(3) **Read values:** Selectable in the OPC UA browser via the context menu. **NOTE:** You can also use the context menu to add entries manually and organize them hierarchically; read values can then be moved there via drag-and-drop (see also (7)).
(4) **Subscription type:** *DataChange* triggers the profile on every value change. *Direct* polls the values at regular intervals.
(5) **Ignore retrieval error status:** Every received record carries a status. If the checkbox is set, the *bad* status is ignored. Otherwise, the profile aborts with an error.
(6) **Subscription initial notification:** If set, all values are queried once when the profile is activated.
(7) **Generate structure:** Creates a matching source structure for Phase 3.
### Client security
Three mechanisms are available for securing access and can be combined:
- **Basic authentication** via the *username* and *password* parameters.
- **Crypto suite** via *opcSecurityPolicy* (e.g., `Basic256Sha256`) and certificate via *certificateSearchTerm* (common name).
- **Security mode** via *opcSecurityMode*. Defines whether traffic is signed and/or encrypted.
#### Define the security mode (`opcSecurityMode`)
> [!NOTE]
> **Available from:** patch/release 25.1.8, 26.1.2, 26.2.0
Use `opcSecurityMode` to enforce a specific OPC UA security mode per alias when the connection is established. This is relevant when a server advertises multiple endpoints but only accepts certain modes in practice or when internal security requirements (e.g., mandatory encryption) must be enforced.
**Allowed values:**
| Value | Meaning | Use case |
| --- | --- | --- |
| `None` | No signature, no encryption | Testing/closed networks |
| `Sign` | Signature, no encryption | Integrity without confidentiality |
| `SignAndEncrypt` | Signature and encryption | Recommended default for production environments |
**Default behavior:** If `opcSecurityMode` is not set, the client uses the first endpoint advertised by the server that matches the remaining settings, as before. The selection then depends on the server's endpoint order. The result is not always deterministic across servers.
**Example:**
```xml
boiler
opc.tcp://opcua.demo-this.com:51210/UA/SampleServer
Basic256Sha256
SignAndEncrypt
*CertificateName*
```
#### Policy vs. mode
- `opcSecurityPolicy` defines **which crypto suite** is used (e.g., `Basic256Sha256`, `Aes256_Sha256_RsaPss`).
- `opcSecurityMode` defines **whether traffic is signed and/or encrypted** (`None`, `Sign`, `SignAndEncrypt`).
Together, both settings determine which server endpoint can be used.
#### Troubleshooting
Connection fails even though policy and certificate appear correct?
1. Check which security modes the server actually offers and accepts on its endpoints.
2. Set `opcSecurityMode` explicitly (typically `SignAndEncrypt`).
3. Make sure `opcSecurityPolicy` is compatible with the chosen mode. The `None` policy cannot be combined with `SignAndEncrypt`, for example.
4. Retry.
### Parameter reference (client)
| Parameter | Required | Description |
| --- | --- | --- |
| `alias` | yes | Unique name of the connection (referenced in the profile). |
| `endpointURL` | yes | OPC UA endpoint of the target server. |
| `minSize` / `maxSize` / `allowGrowing` | no | Pool sizing of the client connections. |
| `username` / `password` | no | Basic authentication on the server. |
| `opcSecurityPolicy` | no | Crypto suite: `None`, `Basic128Rsa15`, `Basic256`, `Basic256Sha256`, `Aes128_Sha256_RsaOaep`, `Aes256_Sha256_RsaPss`. |
| `opcSecurityMode` | no | Security mode: `None`, `Sign`, `SignAndEncrypt`. From 25.1.8 / 26.1.2 / 26.2.0. |
| `certificateSearchTerm` | no | Common name of the client certificate (wildcards allowed). |
## Server model
Lobster Integration acts as an OPC UA server and exposes data to external clients.
### Create the configuration file
Create `./etc/iotserver.xml`. The OPC UA server is reachable by default at `opc.tcp://<URL/IP Integration Server>:4840/opcua_server`. The port can be changed via `listenPort`.
```xml
false
```
### GUI

(1) **Send generic response:** If set, the client receives a simple OK/error response after the profile runs. Otherwise, the target structure can be used to build a response with dynamic return values. All fields under the root-level *IOT_Result* node become part of the response.
(2) **Selection field below (1):** partner selection.
(3) **Arrows in the middle:** at least one channel must be selected.
### Server security
To protect the endpoint with **basic authentication**, set `anonymousLoginAllowed` to `false`. The profile must then use an IoT channel where the *partner ID* and *partner password* are configured under *Partner access*.
> [!TIP]
> **Server certificate and Subject Alternative Name (SAN)**
>
> The OPC UA server requires a TLS certificate. The certificate must contain a Subject Alternative Name of type URI. This URI must match the server's application URI. Otherwise, many clients reject the connection.
>
> If nothing is set in `iotserver.xml`, the default `urn:de:lobster:iot:integrationserver` applies.
>
> Add this URI to the certificate's alternative names in the certificate dialog. Then reference the certificate by name via `tlsSubjectName`.
### Parameter reference (server)
| Parameter | Required | Description |
| --- | --- | --- |
| `tlsSubjectName` | no | Search term for the TLS server certificate (subject). Wildcards allowed, e.g., `*IoT Server*`. |
| `anonymousLoginAllowed` | no | Controls anonymous access. Default `true`. Set to `false` to enforce basic authentication. |
| `listenPort` | no | Port of the OPC UA endpoint. Default `4840`. |
The input agent receives data in Phase 1 and starts a job for further processing. It works either as event based (passively waits for data) or scheduled (actively fetches data).
A profile is the central configuration unit in the Lobster Data Platform. It receives data, processes it, and forwards it. Configuration is done graphically, with no programming required.
Mapping: Rules transfer the data from the source structure to the target structure. This is the core of the profile.