Hi Mikko,
Can you or someone tell me what's wrong with my method? When parsing the received read, I get the response shown in the image
public object Read(object ln, ObjectType ot, int attributeIndex)
{
var obj = new GXDLMSData((string)ln);
GXReplyData reply = new GXReplyData();
if (!ReadDataBlock(Client.Read(ln, ot, attributeIndex), reply))
{
if (reply.Error != (short)ErrorCode.Rejected)
{
throw new GXDLMSException(reply.Error);
}
reply.Clear();
Thread.Sleep(1000);
if (!ReadDataBlock(Client.Read(ln, ot, attributeIndex), reply))
{
throw new GXDLMSException(reply.Error);
}
}
// Update data type if not set
if (obj.GetDataType(attributeIndex) == DataType.None)
{
obj.SetDataType(attributeIndex, reply.DataType);
}
// Return updated value
return Client.UpdateValue(obj, attributeIndex, reply.Value);
}
Hi, Have you set the UI type…
Hi,
Have you set the UI type to the object? Something like this:
obj.SetDataType(attributeIndex, DataType.String);
BR,
Mikko