Skip to content

fabus961/cordova-ionic-esptouch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-ionic-esptouch

It is a cordova plug-in for esptouch networking with esp8266 and esp32, using the latest Espressif library, which can be used for ionic and cordova projects. Forked from coloz, added the wifi ssid and bssid fetching.

espTouch lib

android:0.3.7.0
ios:0.3.7.0

Supported platforms

ios 12.x android 5+

Reference citations

https://github.com/EspressifApp/LibEsptouchForIOS
https://github.com/EspressifApp/LibEsptouchForAndroid
https://github.com/EspressifApp/EsptouchForAndroid
https://github.com/t2wu/cordova-plugin-smartconfig
https://github.com/xumingxin7398/cordovaEsptouch

Forked from

https://github.com/coloz/cordova-plugin-esptouch

How to use

Installation

Ionic capacitor

npm install git@github.com:fabus961/cordova-ionic-esptouch.git

Functions

function start(apSsid, apBssid, apPassword, deviceCountData, broadcastData, successCallback, failCallback) 
function stop(successCallback, failCallback); 
function getCurrentBSSID(successCallback, failCallback); 
function getCurrentWiFiSsid(successCallback, failCallback); 

Example

import * as esptouch from 'cordova-ionic-esptouch'

esptouch.start(ssid, "00:00:00:00:00:00", "myPassword", "1", "1", 
  res => { console.log(res) },
  err => { console.log(err) });

esptouch.stop(res => { console.log(res) }, err => { console.log(err) });

Response

{"bssid":"ffffffffffff","ip":"192.168.1.123"}

Further Reading

https://github.com/web-brandings/cordova-ionic-esptouch/wiki/EspTouch

Known issues

When there are too many AP signals in the environment, the network pairing may fail, but this is not an issue with this plugin

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published