public class YHTTPHub extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
_hubSerialNumber |
protected ArrayList<String> |
_knownUrls |
protected int |
_networkTimeoutMs |
protected Object |
_notifyHandle |
protected long |
_notifyTrigger |
static int |
YIO_DEFAULT_TCP_TIMEOUT |
| Modifier and Type | Method and Description |
|---|---|
void |
addKnownURL(String url) |
protected void |
dbglog(int level,
String msg) |
void |
disable() |
int |
get_connectionState() |
int |
get_hubid() |
int |
get_networkTimeout() |
ArrayList<String> |
get_subDeviceOf(String serialNumber) |
String |
get_urlOf(String serialNumber) |
static String |
getAPIVersion() |
String |
getBaseUrl(boolean withProto,
boolean withUserPass,
boolean withEndSlash) |
ArrayList<String> |
getBootloaders() |
String |
getConnectionUrl() |
String |
getLastErrorMessage() |
int |
getLastErrorType() |
int |
getPort() |
protected void |
handleTimedNotification(String serial,
String funcid,
double time,
double duration,
byte[] report) |
boolean |
isEnabled() |
boolean |
isOnline() |
void |
merge(com.yoctopuce.YoctoAPI.YGenericHub newhub) |
Socket |
OpenConnectedSocket(InetAddress addr,
int port,
long expirationMs) |
int |
ping(int mstimeout) |
void |
requestStop() |
void |
set_connectionState(int connectionState) |
void |
set_networkTimeout(int networkMsTimeout) |
int |
waitIsOnline(int msTimeout) |
public static final int YIO_DEFAULT_TCP_TIMEOUT
protected long _notifyTrigger
protected Object _notifyHandle
protected String _hubSerialNumber
protected volatile int _networkTimeoutMs
public void addKnownURL(String url)
public void requestStop()
public String getConnectionUrl()
public int get_connectionState()
public void set_connectionState(int connectionState)
public int getPort()
public ArrayList<String> getBootloaders() throws YAPI_Exception, InterruptedException
YAPI_ExceptionInterruptedExceptionpublic int ping(int mstimeout)
throws YAPI_Exception
YAPI_Exceptionpublic boolean isOnline()
public Socket OpenConnectedSocket(InetAddress addr, int port, long expirationMs) throws YAPI_Exception
YAPI_Exceptionpublic String getBaseUrl(boolean withProto, boolean withUserPass, boolean withEndSlash)
protected void dbglog(int level,
String msg)
protected void handleTimedNotification(String serial, String funcid, double time, double duration, byte[] report)
public static String getAPIVersion()
public void set_networkTimeout(int networkMsTimeout)
public int get_networkTimeout()
public String getLastErrorMessage()
public int getLastErrorType()
public void merge(com.yoctopuce.YoctoAPI.YGenericHub newhub)
public void disable()
public boolean isEnabled()
public int get_hubid()
public int waitIsOnline(int msTimeout)
throws YAPI_Exception
YAPI_ExceptionCopyright © 2026. All rights reserved.