jooby-codec
    Preparing search index...

    Namespace writeImage

    Command to write the block of the new image to the device. This command is part of update procedure.

    import * as writeImage from 'jooby-codec/analog/commands/downlink/writeImage.js';

    // response to writeImage downlink command
    const bytes = [0x00, 0x00, 0x00, 0x40, 0x01];

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

    console.log(parameters);
    // output:
    {offset: 64, status: 1}

    Command format documentation

    Interfaces

    IWriteImageResponseParameters

    Variables

    examples
    headerSize
    id
    name

    Functions

    fromBytes
    toBytes