toReading

fun Telemetry.toReading(): TelemetryReading?(source)

Maps a protobuf Telemetry packet to its corresponding type-safe TelemetryReading.

Returns null if the packet does not contain any of the supported metrics oneof arms.