jooby-codec
    Preparing search index...

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

    import * as updateImageWrite from 'jooby-codec/obis-observer/commands/downlink/updateImageWrite.js';

    const parameters = {
    requestId: 33,
    offset: 2112,
    data: [
    0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
    ]
    };
    const bytes = updateImageWrite.toBytes(parameters);

    // output command binary in hex representation
    console.log(bytes);
    // output
    [48, 21, 33, 0, 0, 8, 64, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 0, 0, 0, 0, 0]

    Command format documentation

    Variables

    examples
    headerSize
    id
    name

    Functions

    fromBytes
    toBytes