Documentation ¶
Index ¶
Constants ¶
View Source
const ( DEVSTOK = "OK" DEVSTERR = "ERROR" /* Expected value is not equal as setting */ DEVSTDISCONN = "DISCONNECTED" /* Disconnected */ DEVSTUNHEALTHY = "UNHEALTHY" /* Unhealthy status from device */ DEVSTUNKNOWN = "UNKNOWN" )
Device status definition.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OPCUAClient ¶
OPCUAClient is the client structure.
func NewClient ¶
func NewClient(config OPCUAConfig) (client *OPCUAClient, err error)
NewClient new the OPCUA client.
func (*OPCUAClient) Get ¶
func (c *OPCUAClient) Get(nodeID string) (results string, err error)
Get get register.
func (*OPCUAClient) GetStatus ¶
func (c *OPCUAClient) GetStatus() string
GetStatus get device status. Please rewrite this function depending on your devices.
Click to show internal directories.
Click to hide internal directories.