jooby-codec
    Preparing search index...

    Namespace usWaterMeterCommand

    Command to send data frame to Ultrasound water meter.

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

    // request current values
    const parameters = {
    length: 3,
    data: [0x21, 0x02]
    };
    const bytes = usWaterMeterCommand.toBytes(parameters);

    // command binary representation
    console.log(bytes);
    // output:
    [31, 7, 3, 3, 33, 2]

    Command format documentation

    Variables

    examples
    headerSize
    id
    name

    Functions

    fromBytes
    toBytes