Skip to content

Commit

Permalink
Merge branch 'master' into pubsub_state
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfr authored Oct 3, 2023
2 parents d1f9f1e + 0a67c35 commit 8e53c85
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 9 deletions.
4 changes: 3 additions & 1 deletion examples/pubsub/pubsub_publish_encrypted.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,15 @@ int main(int argc, char **argv) {
printf("Error: UADP/ETH needs an interface name\n");
return EXIT_FAILURE;
}
networkAddressUrl.networkInterface = UA_STRING(argv[2]);
networkAddressUrl.url = UA_STRING(argv[1]);
} else {
printf("Error: unknown URI\n");
return EXIT_FAILURE;
}
}
if (argc > 2) {
networkAddressUrl.networkInterface = UA_STRING(argv[2]);
}

return run(&transportProfile, &networkAddressUrl);
}
4 changes: 3 additions & 1 deletion examples/pubsub/pubsub_subscribe_encrypted.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,13 +345,15 @@ int main(int argc, char **argv) {
printf("Error: UADP/ETH needs an interface name\n");
return EXIT_FAILURE;
}
networkAddressUrl.networkInterface = UA_STRING(argv[2]);
networkAddressUrl.url = UA_STRING(argv[1]);
} else {
printf("Error: unknown URI\n");
return EXIT_FAILURE;
}
}
if (argc > 2) {
networkAddressUrl.networkInterface = UA_STRING(argv[2]);
}

return run(&transportProfile, &networkAddressUrl);
}
4 changes: 3 additions & 1 deletion examples/pubsub/pubsub_subscribe_standalone_dataset.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,15 @@ main(int argc, char **argv) {
return EXIT_FAILURE;
}

networkAddressUrl.networkInterface = UA_STRING(argv[2]);
networkAddressUrl.url = UA_STRING(argv[1]);
} else {
printf("Error: unknown URI\n");
return EXIT_FAILURE;
}
}
if (argc > 2) {
networkAddressUrl.networkInterface = UA_STRING(argv[2]);
}

return run(&transportProfile, &networkAddressUrl);
}
4 changes: 3 additions & 1 deletion examples/pubsub/server_pubsub_publisher_iop.c
Original file line number Diff line number Diff line change
Expand Up @@ -846,14 +846,16 @@ int main(int argc, char **argv) {
printf("Error: UADP/ETH needs an interface name\n");
return EXIT_FAILURE;
}
networkAddressUrl.networkInterface = UA_STRING(argv[2]);
networkAddressUrl.url = UA_STRING(argv[1]);
}
else {
printf("Error: unknown URI\n");
return EXIT_FAILURE;
}
}
if (argc > 2) {
networkAddressUrl.networkInterface = UA_STRING(argv[2]);
}

return run(&transportProfile, &networkAddressUrl);
}
4 changes: 3 additions & 1 deletion examples/pubsub/server_pubsub_publisher_on_demand.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,15 @@ int main(int argc, char **argv) {
printf("Error: UADP/ETH needs an interface name\n");
return EXIT_FAILURE;
}
networkAddressUrl.networkInterface = UA_STRING(argv[2]);
networkAddressUrl.url = UA_STRING(argv[1]);
} else {
printf("Error: unknown URI\n");
return EXIT_FAILURE;
}
}
if (argc > 2) {
networkAddressUrl.networkInterface = UA_STRING(argv[2]);
}


return run(&transportProfile, &networkAddressUrl);
Expand Down
4 changes: 3 additions & 1 deletion examples/pubsub/server_pubsub_subscribe_custom_monitoring.c
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,6 @@ int main(int argc, char **argv) {
printf("Error: UADP/ETH needs an interface name\n");
return EXIT_FAILURE;
}
networkAddressUrl.networkInterface = UA_STRING(argv[2]);
networkAddressUrl.url = UA_STRING(argv[1]);
} else {
printf ("Error: unknown URI\n");
Expand All @@ -516,6 +515,9 @@ int main(int argc, char **argv) {
useCustomMonitoring = UA_TRUE;
}
}
if (argc > 2) {
networkAddressUrl.networkInterface = UA_STRING(argv[2]);
}
return run(&transportProfile, &networkAddressUrl, &useCustomMonitoring);
}

4 changes: 3 additions & 1 deletion examples/pubsub/server_pubsub_subscriber_rt_level.c
Original file line number Diff line number Diff line change
Expand Up @@ -400,13 +400,15 @@ int main(int argc, char **argv) {
return EXIT_FAILURE;
}

networkAddressUrl.networkInterface = UA_STRING(argv[2]);
networkAddressUrl.url = UA_STRING(argv[1]);
} else {
printf ("Error: unknown URI\n");
return EXIT_FAILURE;
}
}
if (argc > 2) {
networkAddressUrl.networkInterface = UA_STRING(argv[2]);
}

return run(&transportProfile, &networkAddressUrl);
}
Expand Down
4 changes: 3 additions & 1 deletion examples/pubsub/tutorial_pubsub_publish.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,15 @@ int main(int argc, char **argv) {
printf("Error: UADP/ETH needs an interface name\n");
return EXIT_FAILURE;
}
networkAddressUrl.networkInterface = UA_STRING(argv[2]);
networkAddressUrl.url = UA_STRING(argv[1]);
} else {
printf("Error: unknown URI\n");
return EXIT_FAILURE;
}
}
if (argc > 2) {
networkAddressUrl.networkInterface = UA_STRING(argv[2]);
}

return run(&transportProfile, &networkAddressUrl);
}
4 changes: 3 additions & 1 deletion examples/pubsub/tutorial_pubsub_subscribe.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,13 +308,15 @@ int main(int argc, char **argv) {
return EXIT_FAILURE;
}

networkAddressUrl.networkInterface = UA_STRING(argv[2]);
networkAddressUrl.url = UA_STRING(argv[1]);
} else {
printf ("Error: unknown URI\n");
return EXIT_FAILURE;
}
}
if (argc > 2) {
networkAddressUrl.networkInterface = UA_STRING(argv[2]);
}

return run(&transportProfile, &networkAddressUrl);
}
Expand Down

0 comments on commit 8e53c85

Please sign in to comment.