DeviceMetrics: Message<"meshtastic.DeviceMetrics"> & {
    airUtilTx?: number;
    batteryLevel?: number;
    channelUtilization?: number;
    uptimeSeconds?: number;
    voltage?: number;
}

Key native device metrics such as battery level

Type declaration

  • OptionalairUtilTx?: number

    Percent of airtime for transmission used within the last hour.

    from field: optional float air_util_tx = 4;

  • OptionalbatteryLevel?: number

    0-100 (>100 means powered)

    from field: optional uint32 battery_level = 1;

  • OptionalchannelUtilization?: number

    Utilization for the current channel, including well formed TX, RX and malformed RX (aka noise).

    from field: optional float channel_utilization = 3;

  • OptionaluptimeSeconds?: number

    How long the device has been running since the last reboot (in seconds)

    from field: optional uint32 uptime_seconds = 5;

  • Optionalvoltage?: number

    Voltage measured

    from field: optional float voltage = 2;

from message meshtastic.DeviceMetrics