21. High-level API Reference
callback
,
context
)
Checks if the light sensor is currently reachable, without raising any error (asynchronous version).
Checks if the sensor is currently able to provide an up-to-date measure.
msValidity
)
Preloads the light sensor cache with a specified validity duration.
attrName
)
Returns the current value of a single function attribute, as a text string, as quickly as possible but without using
the cached value.
rawValues
,
refValues
)
Retrieves error correction data points previously entered using the method
calibrateFromPoints
.
msValidity
,
callback
,
context
)
Preloads the light sensor cache with a specified validity duration (asynchronous version).
Disables the propagation of every new advertised value to the parent hub.
Continues the enumeration of light sensors started using
yFirstLightSensor()
.
callback
)
Registers the callback function that is invoked on every periodic timed notification.
callback
)
Registers the callback function that is invoked on every change of advertised value.
newval
)
Changes the recorded maximal value observed.
newval
)
Changes the datalogger recording frequency for this function.
newval
)
Changes the logical name of the light sensor.
newval
)
Changes the recorded minimal value observed.
newval
)
Modifies the light sensor type used in the device.
newval
)
Changes the timed value notification frequency for this function.
newval
)
Changes the resolution of the measured physical values.
data
)
Stores a user context provided as argument in the userData attribute of the function.
Starts the data logger on the device.
Stops the datalogger on the device.
Re-enables the propagation of every new advertised value to the parent hub.
callback
,
context
)
Waits for all pending asynchronous commands on the module to complete, and invoke the user-provided
callback function.
www.yoctopuce.com
359
Содержание 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: ......