Downlink command to get critical events.
import * as getCriticalEvent from 'jooby-codec/mtx1/commands/downlink/getCriticalEvent.js';const parameters = { event: 1, name: 'MAGNETIC_ON', index: 2};const bytes = getCriticalEvent.toBytes(parameters);// command binary representationconsole.log(bytes);// output:[65, 2, 1, 2] Copy
import * as getCriticalEvent from 'jooby-codec/mtx1/commands/downlink/getCriticalEvent.js';const parameters = { event: 1, name: 'MAGNETIC_ON', index: 2};const bytes = getCriticalEvent.toBytes(parameters);// command binary representationconsole.log(bytes);// output:[65, 2, 1, 2]
Command format documentation
Downlink command to get critical events.
Example
Command format documentation