• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java XPGWifiGAgentType类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中com.xtremeprog.xpgconnect.XPGWifiSDK.XPGWifiGAgentType的典型用法代码示例。如果您正苦于以下问题:Java XPGWifiGAgentType类的具体用法?Java XPGWifiGAgentType怎么用?Java XPGWifiGAgentType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

XPGWifiGAgentType类属于com.xtremeprog.xpgconnect.XPGWifiSDK包,在下文中一共展示了XPGWifiGAgentType类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: initData

点赞 3

import com.xtremeprog.xpgconnect.XPGWifiSDK.XPGWifiGAgentType; //导入依赖的package包/类
/**
   * Inits the data.
   */
  private void initData() {
      if (getIntent() != null) {
          if (!StringUtils.isEmpty(getIntent().getStringExtra("ssid"))) {
              strSSid = getIntent().getStringExtra("ssid");
          }
          if (!StringUtils.isEmpty(getIntent().getStringExtra("psw"))) {
              strPsw = getIntent().getStringExtra("psw");
          } else {
              strPsw = "";
          }
          mode_temp = getIntent().getIntExtra("Temp", 0);

}
typeList = new ArrayList<XPGWifiSDK.XPGWifiGAgentType>();
typeList.add(XPGWifiSDK.XPGWifiGAgentType.XPGWifiGAgentTypeMXCHIP);// 庆科
typeList.add(XPGWifiSDK.XPGWifiGAgentType.XPGWifiGAgentTypeHF);// 汉枫
typeList.add(XPGWifiSDK.XPGWifiGAgentType.XPGWifiGAgentTypeRTK);// 瑞昱
typeList.add(XPGWifiSDK.XPGWifiGAgentType.XPGWifiGAgentTypeWM);// 联盛德
typeList.add(XPGWifiSDK.XPGWifiGAgentType.XPGWifiGAgentTypeESP);// 乐鑫
typeList.add(XPGWifiSDK.XPGWifiGAgentType.XPGWifiGAgentTypeQCA);// 高通
typeList.add(XPGWifiSDK.XPGWifiGAgentType.XPGWifiGAgentTypeTI);// TI
  }
 

开发者ID:gizwits,
项目名称:Gizwits-AirConditioner_Android,
代码行数:26,
代码来源:AirlinkActivity.java

示例2: startAirlink

点赞 3

import com.xtremeprog.xpgconnect.XPGWifiSDK.XPGWifiGAgentType; //导入依赖的package包/类
/**
   * Start airlink.
   */
  private void startAirlink() {
      secondleft = 60;
      tvTick.setText(secondleft + "");
      showLayout(UI_STATE.Setting);
      timer = new Timer();
      timer.schedule(new TimerTask() {

          @Override
          public void run() {
              handler.sendEmptyMessage(handler_key.TICK_TIME.ordinal());
          }
      }, 1000, 1000);
      types = new ArrayList<XPGWifiSDK.XPGWifiGAgentType>();
types.add(typeList.get(mode_temp));
mCenter.cSetAirLink(strSSid, strPsw, types);
  }
 

开发者ID:gizwits,
项目名称:Gizwits-AirConditioner_Android,
代码行数:20,
代码来源:AirlinkActivity.java

示例3: initData

点赞 3

import com.xtremeprog.xpgconnect.XPGWifiSDK.XPGWifiGAgentType; //导入依赖的package包/类
/**
 * Inits the data.
 */
private void initData() {
	if (getIntent() != null) {
		if (!StringUtils.isEmpty(getIntent().getStringExtra("ssid"))) {
			strSSid = getIntent().getStringExtra("ssid");
		}
		if (!StringUtils.isEmpty(getIntent().getStringExtra("psw"))) {
			strPsw = getIntent().getStringExtra("psw");
		} else {
			strPsw = "";

		}
		mode_temp = getIntent().getIntExtra("Temp", 0);

	}
	typeList = new ArrayList<XPGWifiSDK.XPGWifiGAgentType>();
	typeList.add(XPGWifiSDK.XPGWifiGAgentType.XPGWifiGAgentTypeMXCHIP);// 庆科
	typeList.add(XPGWifiSDK.XPGWifiGAgentType.XPGWifiGAgentTypeHF);// 汉枫
	typeList.add(XPGWifiSDK.XPGWifiGAgentType.XPGWifiGAgentTypeRTK);// 瑞昱
	typeList.add(XPGWifiSDK.XPGWifiGAgentType.XPGWifiGAgentTypeWM);// 联盛德
	typeList.add(XPGWifiSDK.XPGWifiGAgentType.XPGWifiGAgentTypeESP);// 乐鑫
	typeList.add(XPGWifiSDK.XPGWifiGAgentType.XPGWifiGAgentTypeQCA);// 高通
	typeList.add(XPGWifiSDK.XPGWifiGAgentType.XPGWifiGAgentTypeTI);// TI
}
 

开发者ID:gizwits,
项目名称:Gizwits-AirPurifier_Android,
代码行数:27,
代码来源:AirlinkActivity.java

示例4: startAirlink

点赞 3

import com.xtremeprog.xpgconnect.XPGWifiSDK.XPGWifiGAgentType; //导入依赖的package包/类
/**
 * Start airlink.
 */
private void startAirlink() {
	secondleft = 60;
	tvTick.setText(secondleft + "");
	showLayout(UI_STATE.Setting);
	timer = new Timer();
	timer.schedule(new TimerTask() {

		@Override
		public void run() {
			handler.sendEmptyMessage(handler_key.TICK_TIME.ordinal());
		}
	}, 1000, 1000);
	types = new ArrayList<XPGWifiSDK.XPGWifiGAgentType>();
	types.add(typeList.get(mode_temp));
	mCenter.cSetAirLink(strSSid, strPsw, types);
}
 

开发者ID:gizwits,
项目名称:Gizwits-AirPurifier_Android,
代码行数:20,
代码来源:AirlinkActivity.java

示例5: initData

点赞 3

import com.xtremeprog.xpgconnect.XPGWifiSDK.XPGWifiGAgentType; //导入依赖的package包/类
/**
 * Inits the data.
 */
private void initData() {
	if (getIntent() != null) {
		if (!StringUtils.isEmpty(getIntent().getStringExtra("ssid"))) {
			strSSid = getIntent().getStringExtra("ssid");
		}
		if (!StringUtils.isEmpty(getIntent().getStringExtra("psw"))) {
			strPsw = getIntent().getStringExtra("psw");
		} else {
			strPsw = "";
		}
		mode_temp = getIntent().getIntExtra("Temp", 0);
	}
	typeList = new ArrayList<XPGWifiSDK.XPGWifiGAgentType>();
	typeList.add(XPGWifiSDK.XPGWifiGAgentType.XPGWifiGAgentTypeMXCHIP);// 庆科
	typeList.add(XPGWifiSDK.XPGWifiGAgentType.XPGWifiGAgentTypeHF);// 汉枫
	typeList.add(XPGWifiSDK.XPGWifiGAgentType.XPGWifiGAgentTypeRTK);// 瑞昱
	typeList.add(XPGWifiSDK.XPGWifiGAgentType.XPGWifiGAgentTypeWM);// 联盛德
	typeList.add(XPGWifiSDK.XPGWifiGAgentType.XPGWifiGAgentTypeESP);// 乐鑫
	typeList.add(XPGWifiSDK.XPGWifiGAgentType.XPGWifiGAgentTypeQCA);// 高通
	typeList.add(XPGWifiSDK.XPGWifiGAgentType.XPGWifiGAgentTypeTI);// TI
}
 

开发者ID:gizwits,
项目名称:Gizwits-WaterPurifier_Android,
代码行数:25,
代码来源:AirlinkActivity.java

示例6: startAirlink

点赞 3

import com.xtremeprog.xpgconnect.XPGWifiSDK.XPGWifiGAgentType; //导入依赖的package包/类
/**
 * Start airlink.
 */
private void startAirlink() {
	secondleft = 60;
	tvTick.setText(secondleft + "");
	showLayout(UI_STATE.Setting);
	timer = new Timer();
	timer.schedule(new TimerTask() {

		@Override
		public void run() {
			handler.sendEmptyMessage(handler_key.TICK_TIME.ordinal());
		}
	}, 1000, 1000);
	//
	types = new ArrayList<XPGWifiSDK.XPGWifiGAgentType>();
	types.add(typeList.get(mode_temp));
	mCenter.cSetAirLink(strSSid, strPsw, types);
}
 

开发者ID:gizwits,
项目名称:Gizwits-SmartSocket_Android,
代码行数:21,
代码来源:AirlinkActivity.java

示例7: cSetAirLink

点赞 1

import com.xtremeprog.xpgconnect.XPGWifiSDK.XPGWifiGAgentType; //导入依赖的package包/类
/**
 * 发送airlink广播,把需要连接的wifi的ssid和password发给模块。.
 * 
 * @param wifi
 *            wifi名字
 * @param password
 *            wifi密码
 */
public void cSetAirLink(String wifi, String password, List<XPGWifiGAgentType> types) {
	/*
	 * xpgWifiGCC.setDeviceWifi(wifi, password,
	 * XPGWifiConfigureMode.XPGWifiConfigureModeAirLink, 60);
	 */
	xpgWifiGCC.setDeviceWifi(wifi, password, XPGWifiConfigureMode.XPGWifiConfigureModeAirLink, null, 60, types);
}
 

开发者ID:gizwits,
项目名称:Gizwits-AirConditioner_Android,
代码行数:16,
代码来源:CmdCenter.java

示例8: cSetAirLink

点赞 1

import com.xtremeprog.xpgconnect.XPGWifiSDK.XPGWifiGAgentType; //导入依赖的package包/类
/**
 * 发送airlink广播,把需要连接的wifi的ssid和password发给模块。.
 * 
 * @param wifi
 *            wifi名字
 * @param password
 *            wifi密码
 */
public void cSetAirLink(String wifi, String password, List<XPGWifiGAgentType> types) {
	xpgWifiGCC.setDeviceWifi(wifi, password, XPGWifiConfigureMode.XPGWifiConfigureModeAirLink, null, 60, types);
}
 

开发者ID:gizwits,
项目名称:Gizwits-WaterPurifier_Android,
代码行数:12,
代码来源:CmdCenter.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)