Time correction command.
It is used when the time difference is more than 127 seconds. A device should apply it immediately.
127
import * as setTime2000 from 'jooby-codec/analog/commands/downlink/setTime2000.js';// 240 seconds to the futureconst parameters = {sequenceNumber: 78, seconds: 123456};const bytes = setTime2000.toBytes(parameters);// command binary representationconsole.log(bytes);// output:[2, 5, 78, 0, 1, 226, 64] Copy
import * as setTime2000 from 'jooby-codec/analog/commands/downlink/setTime2000.js';// 240 seconds to the futureconst parameters = {sequenceNumber: 78, seconds: 123456};const bytes = setTime2000.toBytes(parameters);// command binary representationconsole.log(bytes);// output:[2, 5, 78, 0, 1, 226, 64]
Command format documentation
Time correction command.
It is used when the time difference is more than
127
seconds. A device should apply it immediately.Example
Command format documentation