I Have followed the above code snippet, which is also not giving correct datatype. PFB for Request PDU:
<Structure Qty="04" >
<UInt32 Value="0000012C" />
<UInt32 Value="00000708" />
<UInt8 Value="04" />
# 09/07/20, 7:00 AM
<DateTime Value="07E407080314000000014A00" />
</Structure>
Hi,
Hi,
You can try with this.
GXStructure input = new GXStructure();
input.add(0, new GXUInt32(400));
input.add(1, GXUInt32(1800));
input.add(2, GXUInt8(4));
input.add(3, new GXDateTime(2020, 10, 22, 0,0,0,0));
BR,
Mikko
Thanks for your quick
Thanks for your quick response
As per your suggestion i got partial success :), see the below PDU
<Value>
<Structure Qty="04" >
<UInt32 Value="00000190" />
<UInt32 Value="00000708" />
<UInt8 Value="04" />
# 10/22/2020 12:00:00 AM
<DateTime Value="07E40A1604000000FFFEB600" />
</Structure>
</Value>
</SetRequestNormal>
Only DateTime need to converted into OctetString type.
Please guide me on this.
Hi,
Hi,
I need to think about this a little bit. We have used XML to set values like this, but I'll think something.
BR,
Mikko
Hi Srinivasan,
Hi Srinivasan,
We have added new class for date time octect string.
You can use it like this:
GXStructure input = new GXStructure();
input.add(0, new GXUInt32(400));
input.add(1, GXUInt32(1800));
input.add(2, GXUInt8(4));
input.add(3, new GXDateTimeOS(2020, 10, 22, 0,0,0,0));
Now date-time is sent as an octet string.
BR,
Mikko
Sorry for the late response.
Sorry for the late response.
I Have followed the above code snippet, which is also not giving correct datatype. PFB for Request PDU:
<Structure Qty="04" >
<UInt32 Value="0000012C" />
<UInt32 Value="00000708" />
<UInt8 Value="04" />
# 09/07/20, 7:00 AM
<DateTime Value="07E407080314000000014A00" />
</Structure>
Expected:
<Structure Qty="04" >
<UInt32 Value="0000012C" />
<UInt32 Value="00000708" />
<UInt8 Value="04" />
# 09/07/20, 7:00 AM
<OctetString Value="07E407080314000000014A00" />
</Structure>
Hi,
Hi,
This is fixed. Update to the latest version (4.0.19).
BR,
Mikko