jooby-codec
    Preparing search index...

    Namespace errorResponse

    Uplink command that correspond to the failed downlink command.

    import * as errorResponse from 'jooby-codec/mtx1/commands/uplink/errorResponse.js';

    // default parameters
    const bytes = [0x18, 0x93];

    // decoded payload
    const parameters = errorResponse.fromBytes(bytes);

    console.log(parameters);
    // output:
    {
    commandId: 0x18,
    commandName: 'turnRelayOn',
    errorCode: 0x93,
    errorName: 'ACCESS_DENIED'
    }

    Command format documentation

    Interfaces

    IErrorResponseParameters

    Variables

    accessLevel
    examples
    fromBytes
    headerSize
    id
    isLoraOnly
    maxSize
    name

    Functions

    getFromBytes
    toBytes