setUserDataByIndex()

Stores two bytes on the supported device at the specified index. Note that this functionality is not compatible with alarm as it uses the same bytes on the device. sensors.setUserDataByIndex(deviceIndex, data)
sensors: a variable of type DallasTemperature.
deviceIndex: device index.
data: two bytes stored.
nothing