Uplink command to get full date from device.
The corresponding downlink command: getDateTime.
getDateTime
Supported in MTX1 and MTX3 devices.
import * as getDateTime from 'jooby-codec/mtx1/commands/uplink/getDateTime.js';// device time is: 2024.02.19 18:31:55const bytes = [0x00, 0x37, 0x1f, 0x12, 0x02, 0x13, 0x02, 0x18];// decoded payloadconst parameters = getDateTime.fromBytes(bytes);console.log(parameters);// output:{ isSummerTime: false, seconds: 55, minutes: 31, hours: 18, day: 2, date: 19, month: 2, year: 24} Copy
import * as getDateTime from 'jooby-codec/mtx1/commands/uplink/getDateTime.js';// device time is: 2024.02.19 18:31:55const bytes = [0x00, 0x37, 0x1f, 0x12, 0x02, 0x13, 0x02, 0x18];// decoded payloadconst parameters = getDateTime.fromBytes(bytes);console.log(parameters);// output:{ isSummerTime: false, seconds: 55, minutes: 31, hours: 18, day: 2, date: 19, month: 2, year: 24}
Command format documentation
Uplink command to get full date from device.
The corresponding downlink command:
getDateTime
.Supported in MTX1 and MTX3 devices.
Example: create command instance from command body hex dump
Command format documentation