Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create value change subscription #387

Open
apoorvcn47 opened this issue Jul 22, 2021 · 2 comments
Open

Unable to create value change subscription #387

apoorvcn47 opened this issue Jul 22, 2021 · 2 comments

Comments

@apoorvcn47
Copy link

I am trying the example code giving here
https://github.com/FreeOpcUa/freeopcua/blob/master/src/examples/example_client.cpp

Server in this case is a fanuc robot. My code exits while I try to create value change subscription with following log

[2021-07-22 12:31:26.779] [UaClient] [info] ua_client | creating session ...
[2021-07-22 12:31:26.782] [UaClient] [info] ua_client | create session OK
[2021-07-22 12:31:26.782] [UaClient] [info] ua_client | activating session ...
[2021-07-22 12:31:26.790] [UaClient] [info] ua_client | activate session OK
[2021-07-22 12:31:26.791] [UaClient] [info] keep_alive_thread | starting
[2021-07-22 12:31:26.804] [UaClient] [info] keep_alive_thread | stopped
[2021-07-22 12:31:26.808] [UaClient] [warning] binary_client | receive ServiceFault from Ser
ver with StatusCode: There is no subscription available for this session. (0x80790000)
[2021-07-22 12:31:26.808] [UaClient] [warning] binary_client | receive ServiceFault from Ser
ver with StatusCode: There is no subscription available for this session. (0x80790000)
[2021-07-22 12:31:26.812] [UaClient] [info] ua_client | CloseSession response is
^C[INFO] [1626971492.387745986] [rclcpp]: signal_handler(signal_value=2)

I know everything with server is fine because I can create value change subscription with python free opcua. Any idea?

@zaaczaac
Copy link

Hello !

I'm a beginner in OPC UA and with that kind of programming.

I'm a bit lost with all that file but I can see you manage to build a project. I'm trying to set up the "example_server.cpp".

I'm using Visual Studio 2019 where can I begin?

Thanks a lot!

@apoorvcn47
Copy link
Author

I haven't worked with windows in a long time, but all you have to do, is link .h,.so/.lib and .dll. You can do a simple google search to learn how to link these 3 kind of dependencies and its pretty straight forward

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants