Commit 2863011c authored by Ivan Tyagov's avatar Ivan Tyagov

Username / Passwords are dynamic variables we got from command line and not...

Username / Passwords are dynamic variables we got from command line and not constantants. Thus adjust.
parent 7b305ea3
...@@ -507,7 +507,7 @@ int main(int argc, char **argv) { ...@@ -507,7 +507,7 @@ int main(int argc, char **argv) {
if (strlen(arguments.username) > 0 && strlen(arguments.password) > 0){ if (strlen(arguments.username) > 0 && strlen(arguments.password) > 0){
char *username = arguments.username; char *username = arguments.username;
char *password = arguments.password; char *password = arguments.password;
static UA_UsernamePasswordLogin logins[1] = { UA_UsernamePasswordLogin logins[1] = {
{UA_STRING(username), UA_STRING(password)}, {UA_STRING(username), UA_STRING(password)},
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment