jooby-codec
    Preparing search index...

    Uplink command to get the information about serial port settings.

    import * as getSerialPort from 'jooby-codec/obis-observer/commands/uplink/getSerialPort.js';

    // response to getSerialPort
    const bytes = [0x07, 0x05, 0x08, 0x01];

    // decoded payload
    const parameters = getSerialPort.fromBytes(bytes);

    console.log(parameters);
    // output:
    {
    requestId: 7,
    baudRate: 5,
    dataBits: 8,
    parity: parityTypes.ODD
    }

    Command format documentation

    Variables

    examples
    headerSize
    id
    name

    Functions

    fromBytes
    toBytes