Hi,
I would to write the attribute 2 of the object "White Listed Devices". This value attribute, according to the documentation, is an "array of a structure" of 4 elements (octet-string, unsigned, long-unsigned, usigned), how should I do it? This is my sample code:
GXDLMSObject whiteListDevicesListObject = new GXDLMSObject();
whiteListDevicesListObject.setLogicalName(OBIS_WHITE_LISTED_DEVICES);
whiteListDevicesListObject.setDataType(2, DataType.STRUCTURE);
Structures are little complicated. At the moment you can't do this on Java.
Reason for this is that there are no unsigned data types in Java. This will cause that we can't get data type from the array objects.
We have tried to find the solution to this and I believe that we have now the answer for this.
We'll check this and release it begin of next month if it works.
Hi Kurumi,
thanks as always for your immediate reply.
In your C# library (since C# has "unsigned int") "structures" data type are implemented? And another question: I saw that neither "compact arrays" in Java library are implemented, in the C# one have been implemented?
Writing White Listed Devices
Hi Francesco,
Structures are little complicated. At the moment you can't do this on Java.
Reason for this is that there are no unsigned data types in Java. This will cause that we can't get data type from the array objects.
We have tried to find the solution to this and I believe that we have now the answer for this.
We'll check this and release it begin of next month if it works.
BR,
Mikko
Hi Kurumi,
Hi Kurumi,
thanks as always for your immediate reply.
In your C# library (since C# has "unsigned int") "structures" data type are implemented? And another question: I saw that neither "compact arrays" in Java library are implemented, in the C# one have been implemented?
Regards,
Francesco
Writing White Listed Devices
Hi Francesco,
If you are using C# you can do this. Compact arrays are not implemented at the moment because w don't have any meter that is using them.
BR,
Mikko