public class YHub extends Object
Modifier and Type | Field and Description |
---|---|
protected ArrayList<String> |
_knownUrls |
protected String |
_regUrl |
protected Object |
_userData |
Modifier | Constructor and Description |
---|---|
protected |
YHub(YAPIContext yctx,
com.yoctopuce.YoctoAPI.YGenericHub genericHub) |
Modifier and Type | Method and Description |
---|---|
static YHub |
FirstHubInUse()
Starts the enumeration of hubs currently in use by the API.
|
String |
get_connectionUrl()
Returns the URL currently in use to communicate with this hub.
|
String |
get_errorMessage() |
int |
get_errorType() |
ArrayList<String> |
get_knownUrls()
Returns all known URLs that have been used to register this hub.
|
int |
get_networkTimeout() |
String |
get_registeredUrl()
Returns the URL that has been used first to register this hub.
|
String |
get_serialNumber() |
Object |
get_userData()
Returns the value of the userData attribute, as previously stored
using method set_userData.
|
void |
imm_inheritFrom(YHub otherHub) |
boolean |
isInUse() |
boolean |
isOnline() |
boolean |
isReadOnly() |
YHub |
nextHubInUse()
Continues the module enumeration started using YHub.FirstHubInUse().
|
void |
set_networkTimeout(int ms) |
void |
set_userData(Object data)
Stores a user context provided as argument in the userData
attribute of the function.
|
protected YHub(YAPIContext yctx, com.yoctopuce.YoctoAPI.YGenericHub genericHub)
public static YHub FirstHubInUse()
public String get_connectionUrl()
public YHub nextHubInUse()
public boolean isOnline()
public String get_serialNumber()
public boolean isInUse()
public boolean isReadOnly()
public int get_errorType()
public String get_errorMessage()
public int get_networkTimeout()
public void set_networkTimeout(int ms)
public String get_registeredUrl()
public ArrayList<String> get_knownUrls()
public void imm_inheritFrom(YHub otherHub)
public Object get_userData()
public void set_userData(Object data)
data
- : any kind of object to be storedCopyright © 2023. All rights reserved.