public class YUSBHub extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
YGenericHub.HTTPParams |
Modifier and Type | Field and Description |
---|---|
protected HashMap<String,YDevice> |
_devices |
protected long |
_devListExpires |
protected long |
_devListValidity |
protected int |
_hubidx |
protected Object |
_notifyHandle |
protected long |
_notifyTrigger |
protected boolean |
_reportConnnectionLost |
protected HashMap<Integer,String> |
_serialByYdx |
protected static int |
NOTIFY_V2_6RAWBYTES |
protected static int |
NOTIFY_V2_FLUSHGROUP |
protected static int |
NOTIFY_V2_LEGACY |
protected static int |
NOTIFY_V2_TYPEDDATA |
Constructor and Description |
---|
YUSBHub(int idx,
boolean requestPermission) |
Modifier and Type | Method and Description |
---|---|
static String |
getAPIVersion() |
ArrayList<String> |
getBootloaders() |
String |
getRootUrl() |
protected void |
handleTimedNotification(String serial,
String funcid,
double deviceTime,
ArrayList<Integer> report) |
protected void |
handleTimedNotification(String serial,
String funcid,
double deviceTime,
byte[] report) |
protected void |
handleValueNotification(String serial,
String funcid,
String value) |
boolean |
isSameRootUrl(String url) |
int |
ping(int mstimeout) |
static boolean |
RegisterLocalhost() |
void |
startNotifications() |
void |
stopNotifications() |
protected void |
updateFromWpAndYp(ArrayList<com.yoctopuce.YoctoAPI.WPEntry> whitePages,
HashMap<String,ArrayList<com.yoctopuce.YoctoAPI.YPEntry>> yellowPages) |
protected static final int NOTIFY_V2_LEGACY
protected static final int NOTIFY_V2_6RAWBYTES
protected static final int NOTIFY_V2_TYPEDDATA
protected static final int NOTIFY_V2_FLUSHGROUP
protected int _hubidx
protected long _notifyTrigger
protected Object _notifyHandle
protected volatile long _devListValidity
protected long _devListExpires
protected final boolean _reportConnnectionLost
public YUSBHub(int idx, boolean requestPermission) throws YAPI_Exception
YAPI_Exception
public static String getAPIVersion()
public void startNotifications()
public void stopNotifications()
public ArrayList<String> getBootloaders() throws YAPI_Exception
YAPI_Exception
public int ping(int mstimeout) throws YAPI_Exception
YAPI_Exception
public String getRootUrl()
public boolean isSameRootUrl(String url)
public static boolean RegisterLocalhost()
protected void updateFromWpAndYp(ArrayList<com.yoctopuce.YoctoAPI.WPEntry> whitePages, HashMap<String,ArrayList<com.yoctopuce.YoctoAPI.YPEntry>> yellowPages) throws YAPI_Exception
YAPI_Exception
protected void handleValueNotification(String serial, String funcid, String value)
protected void handleTimedNotification(String serial, String funcid, double deviceTime, byte[] report)
Copyright © 2015. All rights reserved.