If you want to get the resistance periodically, it is recommended to use the :cb:`Resistance` callback and set the period with :func:`Set Resistance Callback Period`.

set_temperature_callback_period()

Sets the period in ms with which the :cb:`Temperature` callback is triggered periodically. A value of 0 turns the callback off.

The :cb:`Temperature` callback is only triggered if the temperature has changed since the last triggering.

The default value is 0.

get_temperature_callback_period()

Returns the period as set by :func:`Set Temperature Callback Period`.

set_resistance_callback_period()

Sets the period in ms with which the :cb:`Resistance` callback is triggered periodically. A value of 0 turns the callback off.

The :cb:`Resistance` callback is only triggered if the resistance has changed since the last triggering.

The default value is 0.

get_resistance_callback_period()

Returns the period as set by :func:`Set Resistance Callback Period`.

set_temperature_callback_threshold()

Sets the thresholds for the :cb:`Temperature Reached` callback.

The following options are possible:

.. csv-table:: :header: "Option", "Description" :widths: 10, 100

"'x'", "Callback is turned off"
"'o'", "Callback is triggered when the temperature is *outside* the min and max values"
"'i'", "Callback is triggered when the temperature is *inside* the min and max values"
"'<'", "Callback is triggered when the temperature is smaller than the min value (max is ignored)"
"'>'", "Callback is triggered when the temperature is greater than the min value (max is ignored)"

The default value is ('x', 0, 0).

get_temperature_callback_threshold()

Returns the threshold as set by :func:`Set Temperature Callback Threshold`.

set_resistance_callback_threshold()

Sets the thresholds for the :cb:`Resistance Reached` callback.

The following options are possible:

.. csv-table:: :header: "Option", "Description" :widths: 10, 100

"'x'", "Callback is turned off"
"'o'", "Callback is triggered when the temperature is *outside* the min and max values"
"'i'", "Callback is triggered when the temperature is *inside* the min and max values"
"'<'", "Callback is triggered when the temperature is smaller than the min value (max is ignored)"
"'>'", "Callback is triggered when the temperature is greater than the min value (max is ignored)"

The default value is ('x', 0, 0).

get_resistance_callback_threshold()

Returns the threshold as set by :func:`Set Resistance Callback Threshold`.