I was using an older version of gurux and now I want to update the version to the latest. I am fixing compilation errors version by version and while updating from 3.1.16 to 4.0.1 I did not face any compilation error but faced a runtime error while reading association view.
After the below log, which is the last log in reading the association view.
RX -> 7E A0 14 02 21 05 54 95 E4 E6 E6 00 C0 02 C1 00 00 01 B9 4A 9E 7E
TX <- 7E A0 19 05 02 21 74 CE 46 E6 E7 00 C4 02 C1 01 00 00 01 BA 00 02 01 00 A2 F6 7E
!dlms.getData(rd, reply, notify) method called in the while loop for the above reply is not returning, the app just stucks there.
The readDLMSPacket method is the same as the one in the java client example on github.
what seems to be the problem and how can I fix it?
Thank you for the help in advance.
After some debugging I have
After some debugging I have updated the question. Please check the question again.
Try to read the meter with the client example. If it fails, can you get me the communication hex log from so I can check this from the bytes?
I run it with the client
I updated it to the latest version and it worked.
But while fixing the compilation errors I found out that SecurityPolicy0 is not there anymore so I used SecurityPolicy. What is the difference and Is it the right way?
You can use SecurityPolicy.
Okay but since the
Okay but since the getSecurityPolicy method is returning a set, should I use the first element of the security policy set?