https://github.com/cumulocity-iot/cumulocity-opcua-gateway-solution
This solution creates a sample OPCServer including the required gateway to connect the OPC server to Cumulocity.
https://github.com/cumulocity-iot/cumulocity-opcua-gateway-solution
cumulocity-example cumulocity-iot example gateway iot-analytics opc-ua
Last synced: 5 months ago
JSON representation
This solution creates a sample OPCServer including the required gateway to connect the OPC server to Cumulocity.
- Host: GitHub
- URL: https://github.com/cumulocity-iot/cumulocity-opcua-gateway-solution
- Owner: Cumulocity-IoT
- License: apache-2.0
- Created: 2021-03-15T11:44:03.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-26T12:42:31.000Z (about 1 year ago)
- Last Synced: 2024-10-31T16:23:31.649Z (8 months ago)
- Topics: cumulocity-example, cumulocity-iot, example, gateway, iot-analytics, opc-ua
- Language: Python
- Homepage:
- Size: 269 KB
- Stars: 5
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OPC Server and Gateway
This solution creates a sample OPCServer including the required gateway to connect the OPC server to Cumulocity.
See as well: [OPC UA Agent Cumulocity](https://cumulocity.com/guides/10.7.0-beta/protocol-integration/opcua)
The registration data are stored in the ./data directory that are mapped as a volume to the docker service gateway. And thus still exits after a restart.Update the Cumulocity gateway version to the most recent, this can be found [here](http://resources.cumulocity.com/examples/opc-ua/).
Edit `docker-compose.yaml` and adapt the properties `OPC_UA_GATEWAY_VERSION`, `baseUrl`, `identifier` and `tenantId` to match your environment:
```
version: "3.9"
services:
opcserver:
build:
context: ./opcserver
ports:
- "4840:4840"
gateway:
build:
context: ./gateway
args:
OPC_UA_GATEWAY_VERSION: 1017.0.289
environment:
- baseUrl=https://TENANT_URL
- tenantId=TENANT_ID
- gatewayIdentifier=GATEWAY_IDENTIFIER_LINE1
- gatewayName=Line1 Gateway
volumes:
- ./data/:/data
```The start the solution by running:
docker-compose up -d --no-deps --build
# Register opcserver
Enter url opc.tcp://opcserver:4840 to connect the opc simulation server with Cumulocity gateway.

# Browse OPC tree
Once the gateway scanned the OPCTree you can view its content:

_____________________
This widget is provided as-is and without warranty or support. They do not constitute part of the Software AG product suite. Users are free to use, fork and modify them, subject to the license agreement. While Software AG welcomes contributions, we cannot guarantee to include every contribution in the master pro