jooby-codec
    Preparing search index...

    Uplink command to get the meter archive data.

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

    // response to readArchive downlink command
    const bytes = [
    0x0c, 0x01, 0x00, 0x00, 0x00, 0x01, 0x1b, 0xb4, 0x0c, 0x60, 0x08, 0x3e, 0xcc, 0xcc, 0xcd,
    0x00, 0x00, 0x00, 0x00, 0x02, 0x1b, 0xb4, 0x0c, 0x20, 0x08, 0x3e, 0x4c, 0xcc, 0xcd
    ];

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

    console.log(parameters);
    // output:
    {
    requestId: 12,
    isCompleted: true,
    content: [
    {
    meterId: 1,
    time2000: 464784480,
    obisValueList: [{code: 8, content: 0.40}]
    },
    {
    meterId: 2,
    time2000: 464784416,
    obisValueList: [{code: 8, content: 0.20}]
    }
    ]
    }

    Command format documentation

    Variables

    examples
    headerSize
    id
    name

    Functions

    fromBytes
    toBytes