iec61850bean icon indicating copy to clipboard operation
iec61850bean copied to clipboard

Server dont update changes from Client

Open Helix2551 opened this issue 2 years ago • 1 comments

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 avatar Mar 07 '22 16:03 Helix2551

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);

Helix2551 avatar Mar 14 '22 16:03 Helix2551