Reading BACnet local time and date
-
I am have issue with reading current BACnet PLC date and time. I use following code.
PropertyIdentifier pidTime = new PropertyIdentifier(57); log.warn( "Time "+ localDevice.getConfiguration().getProperty(pidTime)); log.warn("Sys time " + tmptime.toString()); tmptime = new DateTime(); // Reading local device time/date value Encodable deviceTime = localDevice.getConfiguration().getProperty(pidTime);
I get system time instead of real PLC time. What am I doing wrong? Should it be conduct on RemoteDevice? If yes, how. Please help.