withOneWireTemperature

fun EnvironmentMetrics.withOneWireTemperature(channel: Int, value: Float?): EnvironmentMetrics(source)

Returns a copy with 1-Wire channel set to value; an out-of-range channel is a no-op.