20. High-level API Reference
YDataLogger
datalogger
→
registerValueCallback()
Registers the callback function that is invoked on every change of advertised value.
js
function registerValueCallback(
callback
)
nodejs
function registerValueCallback(
callback
)
cpp
int registerValueCallback( YDataLoggerValueCallback
callback
)
m
-(int) registerValueCallback : (YDataLoggerValueCallback)
callback
pas
function registerValueCallback(
callback
: TYDataLoggerValueCallback): LongInt
vb
function registerValueCallback( ) As Integer
cs
int registerValueCallback( ValueCallback
callback
)
java
int registerValueCallback( UpdateCallback
callback
)
uwp
async Task<int> registerValueCallback( ValueCallback
callback
)
py
def registerValueCallback(
callback
)
php
function registerValueCallback(
$callback
)
es
function registerValueCallback(
callback
)
The callback is invoked only during the execution of
ySleep
or
yHandleEvents
. This provides
control over the time when the callback is triggered. For good responsiveness, remember to call one of
these two functions periodically. To unregister a callback, pass a null pointer as argument.
Parameters :
callback
the callback function to call, or a null pointer. The callback function should take two arguments:
the function object of which the value has changed, and the character string describing the new
advertised value.
526
www.yoctopuce.com
Summary of Contents for Yocto-GPS
Page 1: ...Yocto GPS User s guide...
Page 2: ......
Page 6: ...22 Characteristics 557 Blueprint 559 Index 561...
Page 10: ...4 www yoctopuce com...
Page 14: ...8 www yoctopuce com...
Page 18: ...12 www yoctopuce com...
Page 22: ...16 www yoctopuce com...
Page 38: ...32 www yoctopuce com...
Page 42: ...36 www yoctopuce com...
Page 54: ...48 www yoctopuce com...
Page 72: ...66 www yoctopuce com...
Page 92: ...86 www yoctopuce com...
Page 122: ...116 www yoctopuce com...
Page 132: ...126 www yoctopuce com...
Page 564: ...22 Characteristics 558 www yoctopuce com...
Page 565: ......
Page 566: ......