measure
Read voltage, current, power, CC and data line voltages, and temperature from a USB-C power meter, with optional multi-sample averaging and min/max statistics for VBUS, IBUS, and power.
Instructions
Read VBUS/IBUS/power, CC1/CC2, D+/D-, VDD and temperature (V, A, W, °C).
With samples > 1 the readings are taken interval_ms apart and mean/min/max are returned for vbus_v, ibus_a and power_w. Positive current flows from the meter's USB-C receptacle (input) to its plug (output).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| samples | No | ||
| interval_ms | No |