[][src]Function w1_therm_reader::read_from_probe

pub fn read_from_probe(id: &str) -> Result<i32>

A shortcut to read from device id as a string Returns an io::Result with the temperature in m°C or an Error. Calls read_from_file internally

Example

let temp = w1_therm_reader::read_from_probe("10-ae1234fff");