Time correction command.
It is used when the time difference is up to 127 seconds. A device may apply it with a delay.
import * as correctTime2000 from 'jooby-codec/analog/commands/downlink/correctTime2000.js';// 120 seconds to the pastconst parameters = {sequenceNumber: 45, seconds: -120};const bytes = correctTime2000.toBytes(parameters);// command binary representationconsole.log(bytes);// output:[12, 2, 45, 136] Copy
import * as correctTime2000 from 'jooby-codec/analog/commands/downlink/correctTime2000.js';// 120 seconds to the pastconst parameters = {sequenceNumber: 45, seconds: -120};const bytes = correctTime2000.toBytes(parameters);// command binary representationconsole.log(bytes);// output:[12, 2, 45, 136]
Command format documentation
Time correction command.
It is used when the time difference is up to 127 seconds. A device may apply it with a delay.
Example
Command format documentation