![Yoctopuce Yocto-GPS User Manual Download Page 177](http://html1.mh-extra.com/html/yoctopuce/yocto-gps/yocto-gps_user-manual_3415557177.webp)
20. High-level API Reference
YModule
YModule.FindModuleInContext()
yFindModuleInContext()
Retrieves a module for a given identifier in a YAPI context.
java
YModule FindModuleInContext( YAPIContext
yctx
, String
func
)
uwp
YModule FindModuleInContext( YAPIContext
yctx
, string
func
)
es
function FindModuleInContext(
yctx
,
func
)
The identifier can be specified using several formats:
FunctionLogicalName
●
ModuleSerialNumber.FunctionIdentifier
●
ModuleSerialNumber.FunctionLogicalName
●
ModuleLogicalName.FunctionIdentifier
●
ModuleLogicalName.FunctionLogicalName
●
This function does not require that the module is online at the time it is invoked. The returned object is
nevertheless valid. Use the method
YModule.isOnline()
to test if the module is indeed online at a
given time. In case of ambiguity when looking for a module by logical name, no error is notified: the first
instance found is returned. The search is performed first by hardware name, then by logical name.
Parameters :
yctx
a YAPI context
func
a string that uniquely characterizes the module
Returns :
a
YModule
object allowing you to drive the module.
www.yoctopuce.com
171
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: ......