Skip to main content
Version: 2.13.6

DS18B20

api.ds18b20GetTemp(pwrpin, datapin, id)

Returns temperature in milli degrees of Celsius (m°C) from DS18B20. In case of using multiple DS18B20 connected to one data pin, it's possible to address one DS18B20 with ID.

DS18B20 is functional after hardware changes. Also has to be allowed by the firmware.

api.ds18b20Search(pwrpin, datapin, num)

Prints into console address of all the devices.