Forum > Networking and Web Programming
OPC client with Lazarus
denny.chou:
--- Quote from: lupus-rain on October 25, 2021, 11:19:56 am ---Found the fault in open62541.pas wrapper: record UA_ConnectionConfig was enhanced 24. Jan. 2020 to
UA_ConnectionConfig = record
protocolVersion: UA_UInt32;
recvBufferSize: UA_UInt32;
sendBufferSize: UA_UInt32;
localMaxMessageSize: UA_UInt32; (* (0 = unbounded) *)
remoteMaxMessageSize: UA_UInt32; (* (0 = unbounded) *)
localMaxChunkCount: UA_UInt32; (* (0 = unbounded) *)
remoteMaxChunkCount: UA_UInt32; (* (0 = unbounded) *)
end;
--- End quote ---
Wow, it was really unexpected. I tried to modify the definition of UA_ConnectionConfig synchronously. The problem of reporting an error as soon as the stateCallback executes UA_Client_connect did not happen anymore. Thank you very much.
olivluca:
FYI, I'm trying to build v1.2.2 of the dll under windows (32 bits). I'm facing some problems I exposed on the open62541 mailing list (with no replies so far).
In case you're interesed and/or can help, this is the message:
https://groups.google.com/g/open62541/c/pTc8pSneN74
the problem is that the files types_generated.inc (with my modified tool) and types_generated.h (with the stock tool) are different under windows and linux, so I cannot generate consistent bindings that works under both platforms.
LacaK:
@olivluca: can you please also update definition of record UA_ConnectionConfig in https://github.com/fluisgirardi/fpopen62541/blob/main/open62541.pas as suggested above ...
denny.chou:
Hello, can this also be used to connect opc-da?
avra:
--- Quote from: denny.chou on November 23, 2021, 10:26:51 am ---Hello, can this also be used to connect opc-da?
--- End quote ---
Normally not, but there are OPC-UA to OPC-DA gateways which allow that.
For direct OPC-DA access you can use something like this: https://github.com/seryal/OPCComponent
Navigation
[0] Message Index
[#] Next page
[*] Previous page