jooby-codec
    Preparing search index...

    Namespace exAbsHourMc

    Command for retrieving absolute values of channels with hourly differences.

    import * as exAbsHourMc from 'jooby-codec/analog/commands/uplink/exAbsHourMc.js';

    // 1 channel at 2023.03.10 12:00:00 GMT
    const bytes = [0x2e, 0x6a, 0x2c, 0x01, 0x83, 0xb9, 0xf3, 0x14, 0x80, 0x01];

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

    console.log(parameters);
    // output:
    {
    startTime2000: 731764800,
    hours: 2,
    channelList: [
    {
    pulseCoefficient: 100,
    index: 1,
    value: 342457,
    diff: [128]
    }
    ]
    }

    Command format documentation

    Interfaces

    IUplinkExAbsHourMcResponseParameters

    Variables

    examples
    headerSize
    id
    name

    Functions

    fromBytes
    toBytes