ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# 下载 链接: https://pan.baidu.com/s/1u0Z34J4PTraKhFJDs_Q5Ag 提取码: 93c2 # 集成 将`Esptouch.aar`放到模块的libs目录,然后在模块的`build.gradle`文件中添加依赖 ```gradle repositories { flatDir { dirs 'libs' } } dependencies { compile(name:'Esptouch', ext:'aar') } ``` # 使用 ``` java String apSsid = new String("your ssid".getBytes(), ByteUtil.ESPTOUCH_ENCODING_CHARSET); String apBssid = "your bssid"; String apPassword = "your password"; //init EsptouchTask esptouchTask = new EsptouchTask( apSsid, apBssid, apPassword, this ); //start esptouchTask.executeForResults(Integer.MAX_VALUE);//注意:不要在主线程中执行 //stop esptouchTask.interrupt(); ```