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

Server dont update changes from Client #34

Open
Helix2551 opened this issue Mar 7, 2022 · 1 comment
Open

Server dont update changes from Client #34

Helix2551 opened this issue Mar 7, 2022 · 1 comment

Comments

@Helix2551
Copy link

I am using the current git repo.
When I am setting for example "ied1lDevice1/DSCH1.NamPlt.vendor[DC]" to "TestClient" via ClientGUI or ConsoleClient, changes are available on each connected Client when sending a "GetDataValue request" for the same node.
So setting data was successful, but when I print the server model in ConsoleServer the changes are not visible.

But when I set the same attribute via "w- write value to model node" from ConsoleServer, changes are visible when printing the server model.

Is this behavior on purpose? Did I miss something?

@Helix2551
Copy link
Author

I found the "problem".
ConsoleServer creats an initial copy of the serverModel from ServerSAP.
--> serverModel = serverSap.getModelCopy();
So changes from Clients are not visible in that Copy.

My Solution:
case PRINT_SERVER_MODEL_KEY:
System.out.println("** Printing model.");
serverModel = serverSap.getModelCopy();
System.out.println(serverModel);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant