pamoja for TypeScript - v0.2.0
    Preparing search index...

    Class Ds18b20Thermometer

    A DS18B20 the Linux kernel serves as a w1_slave file under /sys/bus/w1/devices.

    Index
    • get path(): string

      The path of the file the thermometer reads.

      Returns string

    • get serial(): string | null

      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.

      Returns string | null

    • 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.

      Returns Promise<Ds18b20Reading>

    • Every 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.

      Parameters

      • Optionaldevices: string | null

      Returns Ds18b20Thermometer[]