Skip to content
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

Configured Locale IDs are not sent in ActivateSession call #970

Closed
lukeSky3434 opened this issue Apr 25, 2022 · 1 comment · Fixed by #971
Closed

Configured Locale IDs are not sent in ActivateSession call #970

lukeSky3434 opened this issue Apr 25, 2022 · 1 comment · Fixed by #971
Milestone

Comments

@lukeSky3434
Copy link

I am using Alarms and Conditions and trying to get some data for later. I try to get the LocalizedText out of the Message Variable.

I am getting the Text without any locale: LocalizedText{text=[xxx] Fehler xx, locale=}

I tried to set the SessionLocaleIds when creating the client:

        return OpcUaClient.create(
            clientExample.getEndpointUrl(),
            endpoints ->
                endpoints.stream()
                    .findFirst(),
            configBuilder ->
                configBuilder
                    .setApplicationName(LocalizedText.english("luke sky client"))
                    .setRequestTimeout(uint(5000))
	            .setSessionLocaleIds(new String[] {"de", "en"})
                    .build()
        );

This setting does not affect the LocalizedText of the Alarm...

Do you have any suggestions?

@kevinherron
Copy link
Contributor

kevinherron commented Apr 25, 2022

Hmm, it seems that the configured session locale IDs are not actually being used during session activation.

I can fix this really quick, but it should be noted that beyond indicating locale preference in the session it is entirely up to the server to implement support for multiple locales, if it supports them at all.

@kevinherron kevinherron added this to the 0.6.6 milestone May 8, 2022
@kevinherron kevinherron changed the title Session Locales Configured Locale ID is not sent in ActivationSession call May 8, 2022
@kevinherron kevinherron changed the title Configured Locale ID is not sent in ActivationSession call Configured Locale IDs are not sent in ActivateSession call May 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants