Download User manual

Transcript
21. High-level API Reference
datalogger→get_friendlyName()
datalogger→friendlyName()
YDataLogger
Returns a global identifier of the data logger in the format MODULE_NAME.FUNCTION_NAME.
js
function get_friendlyName( )
nodejs
function get_friendlyName( )
php
function get_friendlyName( )
cpp
string get_friendlyName( )
m
-(NSString*) friendlyName
cs
string get_friendlyName( )
java
String get_friendlyName( )
py
def get_friendlyName( )
The returned string uses the logical names of the module and of the data logger if they are defined,
otherwise the serial number of the module and the hardware identifier of the data logger (for exemple:
MyCustomName.relay1)
Returns :
a string that uniquely identifies the data logger using logical names (ex: MyCustomName.relay1) On
failure, throws an exception or returns Y_FRIENDLYNAME_INVALID.
www.yoctopuce.com
249