for index 1 (logical name) I think I get the wrong value cause I got "152.12.0.32.253.60" as the answer but I think it's supposed to be "0.0.14.0.1.255". For the rest index, its caught by "UNDEFINED_OBJECT". Even though I can read using GXDLMSDirector, its still error using gurux.DLMS.java.
Can I get an example for reading register activation object?.
I believe that your client address, authentication level or password are not same as GXDLMSDirector. Check them. You can run java example using parameters. Try to read your data first with the client example.
Hi Agung ,
Hi Agung ,
You are reading object, but you are defined registerActivation.
Try with this:
GXDLMSRegisterActivation object = new GXDLMSRegisterActivation("0.0.14.0.1.255");
for (int pos : object.getAttributeIndexToRead(true)) {
try {
read(object, pos);
}catch (Exception ex) {
logger.log(Level.SEVERE, PrintUtil.FAIL_READING_INDEX_LOG,
new Object[]{pos, ex.toString()});
}
}
BR,
Mikko
hi, Mikko
hi, Mikko
thanks for your answer
sorry, I wrote the wrong code before, but I got the same result with your code.
Hi,
Hi,
I believe that your client address, authentication level or password are not same as GXDLMSDirector. Check them. You can run java example using parameters. Try to read your data first with the client example.
BR,
Mikko