Hi Mikko,
I am facing issue while writing end bill date using Gurux Java library. Getting as unmatched type from meter. But its working with GXDLMSDirectory. Can you refer the logs tell me what is the issue.
Code
---------
GXDLMSActionSchedule ac = new GXDLMSActionSchedule("0.0.15.0.0.255");
com.readObject(ac, 4);
GXDateTime gxTime = new GXDateTime("*/1/* 12:00:00 AM"); //M/d/yy h:mm:ss a
ac.setExecutionTime(new GXDateTime[]{ gxTime });
com.writeObject(ac, 4);
You need to skip the day of the week. Java is not skip it when you give date time as a hex string. It's changed for the next version. You can do it like this in the mean time.
GXDateTime gxTime = new GXDateTime("*/1/* 12:00:00 AM");
gxTime.getSkip().add(DateTimeSkips.DAY_OF_WEEK);
Hi,
Hi,
You need to skip the day of the week. Java is not skip it when you give date time as a hex string. It's changed for the next version. You can do it like this in the mean time.
GXDateTime gxTime = new GXDateTime("*/1/* 12:00:00 AM");
gxTime.getSkip().add(DateTimeSkips.DAY_OF_WEEK);
BR,
Mikko