Expand description
§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§
Structs§
- Result
W1 - 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