|
@@ -45,7 +45,7 @@ int main(int argc, char** argv) {
|
|
|
signal(SIGINT, signalHandler);
|
|
|
|
|
|
/* init the server */
|
|
|
- UA_Server *server = UA_Server_new(NULL);
|
|
|
+ UA_Server *server = UA_Server_new();
|
|
|
UA_Server_addNetworkLayer(server,
|
|
|
ServerNetworkLayerTCP_new(UA_ConnectionConfig_standard, PORT));
|
|
|
UA_Server_setLogger(server, Logger_Stdout_new());
|
|
@@ -75,7 +75,7 @@ int main(int argc, char** argv) {
|
|
|
#include "open62541.h"
|
|
|
|
|
|
int main(int argc, char *argv[]) {
|
|
|
- UA_Client *client = UA_Client_new();
|
|
|
+ UA_Client *client = UA_Client_new(NULL);
|
|
|
UA_ClientNetworkLayer nl = ClientNetworkLayerTCP_new(UA_ConnectionConfig_standard);
|
|
|
UA_StatusCode retval = UA_Client_connect(client, UA_ConnectionConfig_standard, nl,
|
|
|
"opc.tcp://localhost:16664");
|