# gopcua **Repository Path**: sycdtk/gopcua ## Basic Information - **Project Name**: gopcua - **Description**: A thin, high-level wrapper around https://github.com/open62541/open62541, so that you can have access to some basic OPC UA client functionality from within Go. - **Primary Language**: C - **License**: LGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-04-23 - **Last Updated**: 2024-05-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # gopcua This package wants to provide a thin, high-level wrapper around [open62541](https://github.com/open62541/open62541), so that you can have access to some basic OPC UA client functionality from within Go. > NOTE: still very experimental and not properly tested. ## Usage See example. To run it, start the [example server](https://github.com/open62541/open62541/blob/master/examples/server.c) from open62541 and execute: ``` go run main.go ``` ```go package main import ( "fmt" "github.com/coussej/gopcua" ) func main() { // get a client and connect to the server c := gopcua.NewClient() err := c.Connect("opc.tcp://localhost:16664") if err != nil { panic(err) } result, err := c.Read_Int32("the.answer") fmt.Printf("the.answer: %+v\n", result) } ```