
21. High-level API Reference
21.4. Temperature function interface
The Yoctopuce class YTemperature allows you to read and configure Yoctopuce temperature sensors.
It inherits from YSensor class the core functions to read measurements, to register callback functions,
to access the autonomous datalogger. This class adds the ability to configure some specific parameters
for some sensors (connection type, temperature mapping table).
In order to use the functions described here, you should include:
js
<script type='text/javascript' src='yocto_temperature.js'></script>
cpp
#include "yocto_temperature.h"
m
#import "yocto_temperature.h"
pas
uses yocto_temperature;
vb
yocto_temperature.vb
cs
yocto_temperature.cs
java
import com.yoctopuce.YoctoAPI.YTemperature;
uwp
import com.yoctopuce.YoctoAPI.YTemperature;
py
from yocto_temperature import *
php
require_once('yocto_temperature.php');
es
in HTML: <script src="../../lib/yocto_temperature.js"></script>
in node.js: require('yoctolib-es2017/yocto_temperature.js');
Global functions
func
)
Retrieves a temperature sensor for a given identifier.
yctx
,
func
)
Retrieves a temperature sensor for a given identifier in a YAPI context.
Starts the enumeration of temperature sensors currently accessible.
yctx
)
Starts the enumeration of temperature sensors currently accessible.
YTemperature
methods
rawValues
,
refValues
)
Configures error correction data points, in particular to compensate for a possible perturbation of the measure
caused by an enclosure.
Invalidates the cache.
Returns a short text that describes unambiguously the instance of the temperature sensor in the form
TYPE(NAME)=SERIAL.FUNCTIONID
.
Returns the current value of the temperature sensor (no more than 6 characters).
Returns the uncalibrated, unrounded raw value returned by the sensor, in Celsius, as a floating point number.
Returns the current value of the temperature, in Celsius, as a floating point number.
Returns the YDatalogger object of the device hosting the sensor.
Returns the error message of the latest error with the temperature sensor.
294
www.yoctopuce.com
Содержание Yocto-RangeFinder
Страница 1: ...Yocto RangeFinder User s guide...
Страница 2: ......
Страница 18: ...12 www yoctopuce com...
Страница 26: ...20 www yoctopuce com...
Страница 42: ...36 www yoctopuce com...
Страница 70: ...gcc lyocto lm lpthread lusb 1 0 lstdc 10 Using Yocto RangeFinder with C 64 www yoctopuce com...
Страница 90: ...84 www yoctopuce com...
Страница 120: ...114 www yoctopuce com...
Страница 130: ...124 www yoctopuce com...
Страница 158: ...21 High level API Reference On failure throws an exception or returns a negative error code 152 www yoctopuce com...
Страница 484: ...478 www yoctopuce com...
Страница 488: ...482 www yoctopuce com...
Страница 490: ...23 Characteristics 484 www yoctopuce com...
Страница 491: ......
Страница 492: ......