-
Notifications
You must be signed in to change notification settings - Fork 341
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
Bug fixes for Windows and the OPC UA server #312
base: master
Are you sure you want to change the base?
Conversation
uri_facade_win.cpp now includes uri_facade_lin.cpp since the Linux version is compatible with the Windows version as far as I can tell.
… OPC UA server to handle requests that were too large for the previous buffer size.
… when a non-existing node or attribute were added as a monitored item. Now the appropiate OPC UA status code should be returned instead. Created a specific runtime exception for when a error defined by a OPC UA status code occures.
Modified cmake build script for MSVC targets to make Visual Studio output .lib files when building shared libraries.
Hi @Magnulas, |
Hi @cenit, I’m however running my opc ua server as a service, which is why I suggested using the linux version of uri_facade_*.cpp in the pull request, as it is compatible with Windows. |
Ok, good to know that Linux version is compatible also with windows. Happy to know that you can use vcpkg port of freeopcua without any problem. Please let me know if you encounter any, and you are very welcome to do a PR also there just in case |
Hi @Magnulas , I used the patch you provided and vcpkg however it does not work for me. I have these following errors while building example_server. Can you help me take a look? Can't appreciate it more. |
Hi @valeria2706, Try casting the doubles to unsigned longs using static_cast. That's what they're doing in the latest version of the master branch for freeopcua. For the commit I created this pull request for the doubles were note cast. I assume they require a cast with a later version of boost. So if you clone the latest version of the master branch and merge it with my changes it should work. |
This pull request should fix the following issues:
Some Windows specific build errors (ex. Definition doesn't match declaration in uri_facade_win.cpp/uri_facade.h #311)
Issue Can't monitor large number variables in client, e.g. 1000 items #193 where large requests could not fit in the servers buffer.
The issue described in the following closed pull request Changed AddDataChangeCallback to mirror python-opcua implementation #293 where clients were disconnected from the server when trying to monitor a non existing item.