I am using Android with a Landis E650 type of meter.
I am trying to update a register object and I have ran into some issues.
The way I do it is I first get the association view, get all the objects and then I call for example:
S -> client.read(register, 3); //To get scaler and unit
R <- 7ea01581037288a4e6e7000c010002020fff161e3ff27e
After I receive the data I try to update my object but fail, like this
client.updateValue(register, 3, reply.getData());
reply is GXReplyData type
The issue is in the GXDLMSRegister file on this line:
Object[] arr = (Object[]) e.getValue();
The problem is that e.getValue(); is a byte array and in the process of updating I don't see where the data is processed and changed to an Object array.
Am I updating the object in a wrong way? Is there any documentation on it because I wasn't able to find it.
After looking through your code I found the function getValue which after using it, it works.
I apologize I might have been a bit impatient with my post, however I still wonder if there is any documentation covering this sort of stuff because I wasn't able to find it.
We have made only very basic docs and if you have any problems or questions ask them in the Forum.
People have so different problems that it's not possible to cover them in the documentation.
Hi,
Hi,
After looking through your code I found the function getValue which after using it, it works.
I apologize I might have been a bit impatient with my post, however I still wonder if there is any documentation covering this sort of stuff because I wasn't able to find it.
BR,
Alex
Hi Alex,
Hi Alex,
Start reading this:
https://www.gurux.fi/Gurux.DLMS
We have made only very basic docs and if you have any problems or questions ask them in the Forum.
People have so different problems that it's not possible to cover them in the documentation.
BR,
Mikko