All Projects → IOCare → cordova-plugin-smartconfig

IOCare / cordova-plugin-smartconfig

Licence: Apache-2.0 License
A cordova plugin for Smart Configure ESP8266 & ESP32 with Espressif Esptouch protocol.

Programming Languages

java
68154 projects - #9 most used programming language
objective c
16641 projects - #2 most used programming language
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to cordova-plugin-smartconfig

IoTManager
Это модульная система автоматизации на базе ESP32/ESP8266 микроконтроллеров и приложения IoT Manager.
Stars: ✭ 41 (+141.18%)
Mutual labels:  esp8266, esp32
nodemcu-shell
UNIX-like ultra-lightweight Shell for NodeMCU supported devices (ESP8266, ESP32, Raspberry Pi, NanoPi, Orange Pi) written in Lua
Stars: ✭ 25 (+47.06%)
Mutual labels:  esp8266, esp32
homekit-qrcode
Generate a pairing HomeKit QR code label for your HomeKit accessory from the command line
Stars: ✭ 17 (+0%)
Mutual labels:  esp8266, esp32
OneWireNg
Arduino 1-wire service library. OneWire compatible. Dallas thermometers support.
Stars: ✭ 32 (+88.24%)
Mutual labels:  esp8266, esp32
interp
Interpreter experiment. Testing dispatch methods: Switching, Direct/Indirect Threaded Code, Tail-Calls and Inlining
Stars: ✭ 32 (+88.24%)
Mutual labels:  esp8266, esp32
Somfy Remote Lib
Emulate a Somfy remote using a 433.42 MHz transmitter.
Stars: ✭ 43 (+152.94%)
Mutual labels:  esp8266, esp32
WiFiConnect
WiFi connection manager for ESP32 and ESP8266 with OLED support
Stars: ✭ 28 (+64.71%)
Mutual labels:  esp8266, esp32
FirebaseJson
🗃 JSON parser and builder for ESP8266, ESP32, Teensy3.x and Teensy4.x, SAM, SAMD and STM32 (128 k flash or more)
Stars: ✭ 29 (+70.59%)
Mutual labels:  esp8266, esp32
SnorkTracker
GPS IoT tracker board for scanning gps and environment information and sending this to a MQTT server via GPRS.
Stars: ✭ 38 (+123.53%)
Mutual labels:  esp8266, esp32
hassio
ESPHome Hass.io addon files
Stars: ✭ 175 (+929.41%)
Mutual labels:  esp8266, esp32
TinyPixelMapper
a Pixelmapping software for the ESP32 and ESP8266 for addressible LED Strips, with a OSC controll interface and FFT
Stars: ✭ 22 (+29.41%)
Mutual labels:  esp8266, esp32
st7789 mpy
Fast pure-C driver for MicroPython that can handle display modules on ST7789 chip
Stars: ✭ 113 (+564.71%)
Mutual labels:  esp8266, esp32
AstroMech
Protocol for exchanging small amounts of data over audio.
Stars: ✭ 21 (+23.53%)
Mutual labels:  esp8266, esp32
coro2sens
Build a simple device that warns if CO₂ concentration in a room becomes a risk for COVID-19 aerosol infections.
Stars: ✭ 32 (+88.24%)
Mutual labels:  esp8266, esp32
sps30
Sensirion SPS30 driver for ESP32, SODAQ, MEGA2560, UNO, ESP8266, Particle-photon on UART OR I2C coummunication
Stars: ✭ 57 (+235.29%)
Mutual labels:  esp8266, esp32
OpenWeather
Arduino library to fetch weather forecasts from OpenWeatherMap
Stars: ✭ 88 (+417.65%)
Mutual labels:  esp8266, esp32
telnetspy
Telnet Server For ESP8266: Cloning the serial port via Telnet. "Debugging over the air"
Stars: ✭ 41 (+141.18%)
Mutual labels:  esp8266, esp32
TP Arduino DigitalRain Anim
A library that represents Digital Rain Animation on color displays that support TFT_eSPI
Stars: ✭ 80 (+370.59%)
Mutual labels:  esp8266, esp32
WebServer tng
ESP8266/ESP32 WebServer
Stars: ✭ 65 (+282.35%)
Mutual labels:  esp8266, esp32
home
Monorepo for all home automation related development, including integrated firmware, PCBs, configuration, and bridges
Stars: ✭ 104 (+511.76%)
Mutual labels:  esp8266, esp32

cordova-plugin-smartconfig

A cordova plugin for Expressif Esptouch protocol which is used to smartconfig esp8266 & ESP32. It's a modified version of original code at https://github.com/xumingxin7398/cordovaEsptouch

Install

cordova plugin add https://github.com/IOCare/cordova-plugin-smartconfig.git

Usage

  1. espSmartconfig.startConfig
//@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


	espSmartconfig.startConfig(apSsid,apBssid,apPassword,isSsidHiddenStr,taskResultCountStr, function(res) {
	  alert(res);
	},function(error){
	  console.log(error);
	});
  1. espSmartconfig.stopConfig
	espSmartconfig.stopConfig(function(res) {
		console.log(res);
	}, function(error) {
		console.log(error);
	});
  1. espSmartconfig.getNetworklist([options], listHandler, fail);

Retrieves a list of the available networks as an array of objects and passes them to the function listHandler. The format of the array is:

networks = [
    {   "level": signal_level, // raw RSSI value
        "SSID": ssid, // SSID as string, with escaped double quotes: "\"ssid name\""
        "BSSID": bssid // MAC address of WiFi router as string
        "frequency": frequency of the access point channel in MHz
        "capabilities": capabilities // Describes the authentication, key management, and encryption schemes supported by the access point.
    }
]

Example usage:

	espSmartconfig.getNetworklist({numLevels: false}, $scope.listHandler, $scope.fail);


	$scope.listHandler = function(ssids) {
		console.log(ssids.SSID);
		console.log(ssids.BSSID);
	};

	$scope.fail = function(e) {
		console.log(e);
	};


An options object may be passed. Currently, the only supported option is numLevels, and it has the following behavior:

if (n == true || n < 2), *.getNetworklist({numLevels: n}) will return data as before, split in 5 levels; if (n > 1), *.getNetworklist({numLevels: n}) will calculate the signal level, split in n levels; if (n == false), *.getNetworklist({numLevels: n}) will use the raw signal level;

#Warning

You must call "espSmartconfig.stopConfig" when you want to stop the config,if not "espSmartconfig.startConfig" won't work if called next time.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].