jooby-codec
    Preparing search index...

    Downlink command to setup the meter id, meter profile id, meter address to the meter. A new meter will be created if it doesn't exist.

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

    const parameters = {
    requestId: 3,
    meterId: 20,
    meterProfileId: 17,
    address: 'ma2375'
    };
    const bytes = setupMeter.toBytes(parameters);

    // output command binary in hex representation
    console.log(bytes);
    // output
    [112, 13, 3, 0, 0, 0, 20, 6, 109, 97, 50, 51, 55, 53, 17]

    Command format documentation

    Variables

    examples
    headerSize
    id
    name

    Functions

    fromBytes
    toBytes