Recent

Author Topic: OPC client with Lazarus  (Read 70218 times)

Truffaldino

  • Newbie
  • Posts: 1
Re: OPC client with Lazarus
« Reply #90 on: January 23, 2025, 01:18:34 pm »
Hello, friends!
Has anyone managed to make an OPCUA component for Lazarus?
The wrapper from this topic is good, but the component is better.  :D

colddudu49

  • Newbie
  • Posts: 1
Re: OPC client with Lazarus
« Reply #91 on: January 29, 2025, 10:24:12 pm »
Has anyone managed to get the wrapper to work correctly in Delphi? Everything works in Lazarus. In Delphi I can connect, read the values, but I can't add a variable on the server and I can't subscribe.
And even when reading values, if I make a second reading request after more than 30 seconds, I get the error: BadSessionIdInvalid.
I suspect there are differences in the configuration structures, but I haven't figured them out in two days.
I would be grateful for any suggestions.
I use the code: https://github.com/fluisgirardi/fpopen62541
Win32. Dll version: 1.2-RC2, 1.2.6

Hello, I'm also using the wrapper in Delphi, the test application connect to server but secure channel is closed.
connect state after connection : UA_SESSIONSTATE_ACTIVATED/UA_SECURECHANNELSTATE_CLOSED.

Can anyone tell me what I am doing wrong?
The same code is working fine in Lazarus
« Last Edit: January 31, 2025, 12:19:50 am by colddudu49 »

LacaK

  • Hero Member
  • *****
  • Posts: 696
Re: OPC client with Lazarus
« Reply #92 on: April 11, 2025, 10:12:47 am »
You must have also others DLLs there (beside libopen62541.dll):
- libgcc_s_sjlj-1.dll,
- libwinpthread-1.dll

Look at http://win-builds.org/1.5.0/packages/ (gcc and winpthreads package) or https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/8.1.0/threads-win32/sjlj/x86_64-8.1.0-release-win32-sjlj-rt_v6-rev0.7z

 

TinyPortal © 2005-2018