jooby-codec
    Preparing search index...

    Downlink command to set the single or multi mode of the observer device.

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

    const parameters = {
    requestId: 3,
    singleMode: true
    };
    const bytes = setObserverSingleMode.toBytes(parameters);

    // output command binary in hex representation
    console.log(bytes);
    // output
    [11, 2, 3, 1]

    Command format documentation

    Variables

    examples
    headerSize
    id
    name

    Functions

    fromBytes
    toBytes