|
沙发
楼主 |
发表于 2015-12-28 12:27:38
|
只看该作者
我的源代码如下,如果我的调用错了,希望指正,谢谢。
/**
* softap,把需要连接的wifi的ssid和password发给模块。.
*
* @param wifi
* wifi名字
* @param password
* wifi密码
*/
public void cSetSoftAp(String wifi, String password) {
List<XPGWifiGAgentType> agentType = new ArrayList<XPGWifiGAgentType>();
//agentType.add(XPGWifiGAgentType.XPGWifiGAgentTypeESP);
agentType.add(XPGWifiGAgentType.XPGWifiGAgentTypeHF);
//agentType.add(XPGWifiGAgentType.XPGWifiGAgentTypeMXCHIP);
agentType.add(XPGWifiGAgentType.XPGWifiGAgentTypeQCA);
//agentType.add(XPGWifiGAgentType.XPGWifiGAgentTypeRTK);
agentType.add(XPGWifiGAgentType.XPGWifiGAgentTypeTI);
agentType.add(XPGWifiGAgentType.XPGWifiGAgentTypeWM);
xpgWifiGCC.setDeviceWifi(wifi, password,
XPGWifiConfigureMode.XPGWifiConfigureModeSoftAP, "", 30, agentType);
} |
|