jooby-codec
    Preparing search index...

    Namespace getDayMaxPower

    Uplink command to get day max power by 4 tariffs (T1-T4).

    This command can be transmitted only via Lora.

    import * as getDayMaxPower from 'jooby-codec/mtx1/commands/uplink/getDayMaxPower.js';

    // response to getDayMaxPower downlink command
    const bytes = [0x2a, 0x43, 0x11, 0x44, 0x02, 0x03, 0x00, 0x00, 0x10, 0x00, 0x04, 0x05, 0x00, 0x00, 0x20, 0x00];

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

    console.log(parameters);
    // output:
    {
    date: {
    year: 21,
    month: 2,
    date: 3
    },
    tariffs: [
    null,
    null,
    {
    'A+': {
    hours: 2,
    minutes: 3,
    power: 0x1000
    },
    'A-R+': {
    hours: 4,
    minutes: 5,
    power: 0x2000
    }
    },
    null
    ]
    }

    Command format documentation

    Variables

    accessLevel
    examples
    headerSize
    id
    isLoraOnly
    maxSize
    name

    Functions

    fromBytes
    toBytes
    toJson