在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:cordovaEsptouch开源软件地址:https://gitee.com/norble/cordovaEsptouch开源软件介绍:cordovaEsptouchcordova的插件,用于wifi配网smartconfig 的 esptouch ,仅支持ios、androida cordova plugin for Esptouch which smartconfig esp8266 安装ionic cordova plugin add https://git.oschina.net/norble/cordovaEsptouch.git usage1.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注意,只支持真机调试。 |
请发表评论