thisdavej / ds18b20-raspi

Get temperature readings from a DS18B20 1-Wire sensor connected to a Raspberry Pi
MIT License
17 stars 4 forks source link

Add listOrThrow function #14

Open b0czek opened 3 years ago

b0czek commented 3 years ago

While using the package I found that the list() function without callback is really ambiguous in distinction between no sensors and not working 1-Wire bus so I suggest adding listOrThrow() function which will throw in case of 1-Wire directory not existing.