22. High-level API Reference
www.yoctopuce.com
171
Returns the value of the userData attribute, as previously stored using method
set_userData
.
module
→
get_userVar()
Returns the value previously stored in this attribute.
module
→
hasFunction(
funcId
)
Tests if the device includes a specific function.
module
→
isOnline()
Checks if the module is currently reachable, without raising any error.
module
→
isOnline_async(
callback
,
context
)
Checks if the module is currently reachable, without raising any error.
module
→
load(
msValidity
)
Preloads the module cache with a specified validity duration.
module
→
load_async(
msValidity
,
callback
,
context
)
Preloads the module cache with a specified validity duration (asynchronous version).
module
→
log(
text
)
Adds a text message to the device logs.
module
→
nextModule()
Continues the module enumeration started using
yFirstModule()
.
module
→
reboot(
secBeforeReboot
)
Schedules a simple module reboot after the given number of seconds.
module
→
registerBeaconCallback(
callback
)
Register a callback function, to be called when the localization beacon of the module has been changed.
module
→
registerConfigChangeCallback(
callback
)
Register a callback function, to be called when a persistent settings in a device configuration has been
changed (e.g.
module
→
registerLogCallback(
callback
)
Registers a device log callback function.
module
→
revertFromFlash()
Reloads the settings stored in the nonvolatile memory, as when the module is powered on.
module
→
saveToFlash()
Saves current settings in the nonvolatile memory of the module.
module
→
set_allSettings(
settings
)
Restores all the settings of the device.
module
→
set_allSettingsAndFiles(
settings
)
Restores all the settings and uploaded files to the module.
module
→
set_beacon(
newval
)
Turns on or off the module localization beacon.
module
→
set_logicalName(
newval
)
Changes the logical name of the module.
module
→
set_luminosity(
newval
)
Changes the luminosity of the module informative leds.
module
→
set_userData(
data
)
Stores a user context provided as argument in the userData attribute of the function.
module
→
set_userVar(
newval
)
Stores a 32 bit value in the device RAM.
module
→
triggerConfigChangeCallback()
Содержание Yocto-Display
Страница 1: ...Yocto Display User Manual...
Страница 2: ......
Страница 40: ...34 www yoctopuce com...
Страница 52: ...46 www yoctopuce com...
Страница 84: ...78 www yoctopuce com...
Страница 92: ...86 www yoctopuce com...
Страница 130: ...124 www yoctopuce com...
Страница 158: ...22 High level API Reference 152 www yoctopuce com On failure throws an exception or returns a negative error code...
Страница 422: ...416 www yoctopuce com...
Страница 424: ...24 Characteristics 418 www yoctopuce com...