Uplink command that correspond to the failed downlink command.
import * as errorResponse from 'jooby-codec/mtx1/commands/uplink/errorResponse.js';// default parametersconst bytes = [0x18, 0x93];// decoded payloadconst parameters = errorResponse.fromBytes(bytes);console.log(parameters);// output:{ commandId: 0x18, commandName: 'turnRelayOn', errorCode: 0x93, errorName: 'ACCESS_DENIED'} Copy
import * as errorResponse from 'jooby-codec/mtx1/commands/uplink/errorResponse.js';// default parametersconst bytes = [0x18, 0x93];// decoded payloadconst parameters = errorResponse.fromBytes(bytes);console.log(parameters);// output:{ commandId: 0x18, commandName: 'turnRelayOn', errorCode: 0x93, errorName: 'ACCESS_DENIED'}
Command format documentation
Uplink command that correspond to the failed downlink command.
Example: create command instance from command body hex dump
Command format documentation