[][src]Crate w1_therm_reader

w1_therm_reader

A lib to parse w1_therm /sys file on linux to get data from onewire temperature sensors exemples are in the Readme.md file

Modules

parser

Structs

ResultW1

A struct with datas from sensor

Functions

convert_to_metric

An helper to convert data from m°C to °C

read_from_file

Read from a file the temperature It takes a path as a String and returns an io::Result with the temperature in m°C or an Error.

read_from_probe

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