All Projects → coussej → gopcua

coussej / gopcua

Licence: other
[OBSOLETE] 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.

Programming Languages

c
50402 projects - #5 most used programming language
C++
36643 projects - #6 most used programming language
go
31211 projects - #10 most used programming language

gopcua

This package wants to provide a thin, high-level wrapper around 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 from open62541 and execute:

go run main.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)
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].