22. High-level API Reference
www.yoctopuce.com
167
YAPI
YAPI.UpdateDeviceList()
yUpdateDeviceList()
Triggers a (re)detection of connected Yoctopuce modules.
js
function yUpdateDeviceList(
errmsg
)
cpp
YRETCODE yUpdateDeviceList( string&
errmsg
)
m
+(YRETCODE) UpdateDeviceList :(NSError**)
errmsg
pas
function yUpdateDeviceList( var
errmsg
: string): integer
vb
function yUpdateDeviceList( ByRef
errmsg
As String) As YRETCODE
cs
YRETCODE UpdateDeviceList( ref string
errmsg
)
java
int UpdateDeviceList( )
uwp
Task<int> UpdateDeviceList( )
py
def UpdateDeviceList(
errmsg
=None)
php
function yUpdateDeviceList(
&$errmsg
)
es
function UpdateDeviceList(
errmsg
)
The library searches the machines or USB ports previously registered using
yRegisterHub()
, and
invokes any user-defined callback function in case a change in the list of connected devices is
detected.
This function can be called as frequently as desired to refresh the device list and to make the
application aware of hot-plug events.
Parameters :
errmsg
a string passed by reference to receive any error message.
Returns :
YAPI_SUCCESS
when the call succeeds.
On failure, throws an exception or returns a negative error code.
Summary of Contents for Yocto-Display
Page 1: ...Yocto Display User Manual...
Page 2: ......
Page 40: ...34 www yoctopuce com...
Page 52: ...46 www yoctopuce com...
Page 84: ...78 www yoctopuce com...
Page 92: ...86 www yoctopuce com...
Page 130: ...124 www yoctopuce com...
Page 422: ...416 www yoctopuce com...