In GXDLMSData class Definition
1. logical_name | (static) octet-string
2. value | CHOICE {
-- simple data types
null-data [0], boolean [3], bit-string [4] and so on ...
-- complex data types
array [1],
structure [2],
compact-array [19]
}
So here we can set simple data types but we cannot set complex data types.
We need to SET complex data types (array or structure) in Data Class.
You can use GXDLMSTranslator.XmlToValue for that. Give XML as a parameter. You can get XML if you read value first from the meter and change it to the XML using GuruxDLMSTranslator.
If you are using ANSI C or ANSI C++ you can build the structure by hand.
Hi,
Hi,
You can use GXDLMSTranslator.XmlToValue for that. Give XML as a parameter. You can get XML if you read value first from the meter and change it to the XML using GuruxDLMSTranslator.
If you are using ANSI C or ANSI C++ you can build the structure by hand.
BR,
Mikko