jooby-codec
    Preparing search index...

    Namespace getBatteryStatus

    Uplink command for receiving status information from the sensor battery.

    By default, the battery status is measured once per 24 hours. The state of the battery physically cannot change dramatically. Response to the request contains the latest measurement results. This is enough to monitor the battery condition.

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

    const bytes = 0x10, 0x0e, 0x10, 0x0e, 0x0a, 0x04, 0x0f, 0x29, 0x00, 0x22, 0x00;

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

    console.log(parameters);
    // output:
    {
    voltageUnderLowLoad: 3600,
    voltageUnderHighLoad: 3600,
    internalResistance: 1034,
    temperature: 15,
    remainingCapacity: 41,
    isLastDayOverconsumption: false,
    averageDailyOverconsumptionCounter: 34
    }

    Command format documentation

    Interfaces

    IGetBatteryStatusResponseParameters

    Variables

    examples
    headerSize
    id
    name

    Functions

    fromBytes
    toBytes