|
板凳
楼主 |
发表于 2015-11-23 16:46:00
|
只看该作者
XPGWifiDeviceListener listener=new XPGWifiDeviceListener(){
/** @deprecated */
public void didDisconnected(XPGWifiDevice device) {
_didDisconnected(device);
}
public void didDisconnected(XPGWifiDevice device, int result) {
_didDisconnected(device, result);
}
public void didLogin(XPGWifiDevice device, int result) {
_didLogin(device,result);
}
public void didReceiveData(XPGWifiDevice device, ConcurrentHashMap<String, Object> dataMap, int result) {
_didReceiveData(device,dataMap,result);
}
public void didDeviceOnline(XPGWifiDevice device, boolean isOnline) {
_didDeviceOnline(device,isOnline);
}
protected void didSetSwitcher(XPGWifiDevice device, int result) {
_didSetSwitcher(device,result);
}
public void didUpdateDeviceLog(XPGWifiDevice device, ConcurrentHashMap<String, Object> logInfo) {
_didUpdateDeviceLog(device,logInfo);
}
public void didQueryHardwareInfo(XPGWifiDevice device, int result, ConcurrentHashMap<String, String> hardwareInfo) {
_didQueryHardwareInfo(device, result, hardwareInfo);
}
};
private void setListener(){
if (currentDevice!=null){
currentDevice.setListener(listener);
}
}
我是这样设置的啊 |
|