The path of the file the thermometer reads.
The serial the kernel named the thermometer's directory after: the twelve hex digits
after 28-, which tell one probe from another and stay with the part for life. Null
when the file does not sit in a DS18B20's directory, as one named by at may not.
Reads the file on a worker thread, which makes the kernel run a conversion, and resolves with the decoded reading. Rejects when the file cannot be read or the kernel or this decoder rejects the checksum.
StaticatA thermometer named by the path of its w1_slave file.
StaticdiscoverEvery DS18B20 the kernel has found, one per 28- directory under devices, which is
/sys/bus/w1/devices unless given. Throws when the directory cannot be listed, which
usually means the 1-Wire overlay is off.
Optionaldevices: string | nullStaticforA thermometer named by the serial in its directory name, the twelve hex digits after
28-.
A DS18B20 the Linux kernel serves as a
w1_slavefile under/sys/bus/w1/devices.