You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@plc4x.apache.org by Stephen Snow <s4...@gmail.com> on 2021/08/20 16:06:40 UTC

Re: [jira] [Comment Edited] (PLC4X-303) OPCUA should support username / password authentication

Hello Torsten,

--snip

> 1. the boolean field "ns=2;s=HelloWorld/ScalarTypes/Boolean" is
> returned as '0' (in 0.8.0 it is returned as 'false')

By definition boolean has two states, false and true. In PLC
perspective, and digital in general, false=0 and true=1.

> 2. if I provide wrong credentials in the URL, the app will hang in
> call of new PlcDriverManager().getConnection( connectionString ) and
> never come back.
>  !screenshot-1.png! 
> The console outputs: [nioEventLoopGroup-2-1] ERROR
> org.apache.plc4x.java.opcua.context.SecureChannel - Failed to connect
> to opc ua server for the following reason:- 2149580800,
> BadIdentityTokenInvalid
> I would expect some kind of exception. 
> 
You likely need to surround it with a try catch pair. I would expect to
have incorrect credentials entered randomly.

--snip

Just offering my opinion, not answering for anyone.
Regards,
Stephen