jooby-codec
    Preparing search index...

    Namespace getObisContentByIdString

    Uplink command to get the OBIS code content from the specific metering device.

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

    // response to getObisContentById with string result
    const bytes = [0x79, 0x0c, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x20, 0x65, 0x6e, 0x65, 0x72, 0x67, 0x79];

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

    console.log(parameters);
    // output:
    {
    requestId: 121,
    content: 'Total energy'
    }

    Command format documentation

    Variables

    examples
    headerSize
    id
    name

    Functions

    fromBytes
    toBytes