Skip to content

ThermometersFound

Arnd edited this page Dec 12, 2020 · 3 revisions

ThermometersFound

This public variable is set to the number of devices discovered during the ScanForDevices() call and is undefined before the call. It may not be modified.


Example:

const uint8_t ONE_WIRE_PIN = 8;             // 1-Wire microLAN pin
DSFamily_Class ds(ONE_WIRE_PIN);            // Instantiate
ds.ScanForDevices();                        // find all devices
Serial.print("Found ");                     // display results
Serial.println(ds.ThermometersFound);