[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [milo-dev] OpcUaCilentConfig
|
ApplicationName: a name that identifies your application when a Session is created.
RequestTimeout: how long the client will wait for a response from the server before giving up. The default value of 60,000ms is normally fine, 5,000ms is just to speed up the examples if something goes wrong.
KeepAliveFailuresAllowed: the client will read the server State variable periodically (at KeepAliveInterval) and if it fails consecutively a number of times that exceeds this value the client will reconnect.
>
> On Feb 18, 2021, at 01:33, Jakub Znamenáček <znamenacekjakub@xxxxxxxxx> wrote:
>
>
> Hi, could anyone explain me in detail what exactly these parameters are doing:
>
> // Sets configuration
> OpcUaClientConfig opcUaConfiguration = OpcUaClientConfig.builder()
> .setEndpoint(endpoint)
> .setApplicationName(LocalizedText.english(configuration.getApplicationName()))
> .setRequestTimeout(uint(5_000))
> .setKeepAliveFailuresAllowed(uint(0)) //Number of possible failures
> .setKeepAliveInterval(uint(5_000)) //Time after which is session (connection) marked as disconnected
> .build();
>
> I understand what setEndpoint() does but I would like to make clear for what exactly (I have basic idea) is the rest (and based on what should I chose them).
>
> setApplicationName: What for it is used?
> setRequestTimeout: What exactly this means and how to select correct value?
> setKeepAliveFailures: What happens when failures acceded this number, how to select correct one?
> setKeepAliveInterval: How exactly this works, how to select the correct value, can setRequestTimeout be same value?
>
> Jakub Znamenáček
> _______________________________________________
> milo-dev mailing list
> milo-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/milo-dev