# cordovaEsptouch **Repository Path**: norble/cordovaEsptouch ## Basic Information - **Project Name**: cordovaEsptouch - **Description**: cordova的插件,用于wifi配网smartconfig 的 esptouch ,仅支持ios、android - **Primary Language**: Objective-C - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 2 - **Created**: 2017-08-29 - **Last Updated**: 2021-09-26 ## Categories & Tags **Categories**: phonegap-cordova-plugins **Tags**: None ## README # cordovaEsptouch cordova的插件,用于wifi配网smartconfig 的 esptouch ,仅支持ios、android a cordova plugin for Esptouch which smartconfig esp8266 # 安装 ionic cordova plugin add https://git.oschina.net/norble/cordovaEsptouch.git # usage 1.esptouchPlugin.smartConfig //@apSsid,ssid of the wifi,for example: "wifiName" //@apBssid,bssid of the wifi,for example "b2:05:2f:92" //@apPassword,password of the wifi,for example: "wifiPassword" //@isSsidHiddenStr,default "NO" //@taskResultCountStr,the count of device you want to config,for example:1 esptouchPlugin.smartConfig(apSsid,apBssid,apPassword,isSsidHiddenStr,taskResultCountStr, function(res) { alert(res); },function(error){ console.log(error); }); 2.esptouchPlugin.cancelConfig esptouchPlugin.cancelConfig(function(res) { console.log(res); }, function(error) { console.log(error); }); #warning you must call "esptouchPlugin.cancelConfig" when you want to stop the config,if not it will make some mistake when you call "esptouchPlugin.smartConfig" the other time. IOS注意,只支持真机调试。