client_proper.c 432 B

123456789101112131415161718
  1. #ifdef NOT_AMALGATED
  2. #include "ua_types.h"
  3. #include "ua_client.h"
  4. #else
  5. #include "open62541.h"
  6. #endif
  7. #include "networklayer_tcp.h"
  8. int main(int argc, char *argv[]) {
  9. UA_Client *client = UA_Client_new();
  10. UA_ClientNetworkLayer nl = ClientNetworkLayerTCP_new(UA_ConnectionConfig_standard);
  11. UA_Client_connect(client, UA_ConnectionConfig_standard, nl, "opc.tcp://localhost:16664");
  12. UA_Client_delete(client);
  13. }