/*
 * Created by jiaqiang.ye@lnxall.com
 *
 * Simple OPC-UA remote TAG read/write
 *
 * 2024/08/23
 */

#ifndef OPCUA_SETGET_H
#define OPCUA_SETGET_H 1
#ifdef __cplusplus
extern "C" {
#endif

struct opcua_setopt {
	char * uaurl;
	char * username;
	char * passwd;
	char * serverip;
	int portno;
};

int setopt_init(struct opcua_setopt * opt);

int setopt_update_ipport(struct opcua_setopt * opt,
	const char * serverip, int portno);

int setopt_update_userpass(struct opcua_setopt * opt,
	const char * username, char * passwd);

void setopt_free(struct opcua_setopt * opt);

#ifdef __cplusplus
};
#endif
#endif
