jooby-codec
    Preparing search index...

    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';

    const parameters = {
    offset: 64,
    data: [0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f]
    };
    const bytes = writeImage.toBytes(parameters);

    // command binary representation
    console.log(bytes);
    // output:
    [31, 42, 20, 0, 0, 0, 64, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]

    Command format documentation

    Interfaces

    IWriteImageParameters

    Variables

    examples
    headerSize
    id
    name

    Functions

    fromBytes
    toBytes
    toJson