Catalog npm
PACKAGE EXPLORERView in registry

-lorenzovecchi-react-native-esptouch-2-forked

npm

used to configure ESP devices to connect to target AP - forked version

androidiosreact-native
Versions collected35
Direct dependencies19From release 0.2.0
Last observed20 Oct, 16:05 UTC

README

Current package documentation

react-native-esptouch-2

I forked this repo to edit package react-native-esptouch-2 created by https://www.npmjs.com/package/@lorenzovecchi/react-native-esptouch-2/v/0.1.4

Used to configure ESP devices to connect to target AP

  • Support both Android and iOS
  • iOS code is untested

This is a Unofficial project. The official demo is below:

EsptouchForAndroid

EsptouchForIOS

Installation

Install the module from npm

npm install @lorenzovecchi/react-native-esptouch-2

Android

Add permissions in AndroidManifest.xml

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" />

iOS

cd ios && pod install

Usage

import * as ESPTouch2 from "react-native-esptouch-2";

/**
* Start the configuration broadcasting the informations to the device
* @param {string} ssid
*   AP SSID
* @param {string} bssid
*   AP BSSID
* @param {string} password
*   AP Password (null if open network)
* @param {string} customData
*   Additional data to send (nullable)
* @param {string} aesKey
*   Encrypt the data to send (if not null, it must be 16 byte) (nullable)
*
* @resolve {object} res
*   Object containing the successfully configured device address and bssid
* @reject {Exception} err
*   Error exception
*/
ESPTouch2.start(ssid, bssid, password, customData, aesKey).then(res => {
    //On success
    console.log(res.address, res.bssid);
}).catch(err => {
    //On error
    console.log(err);
});

/**
* Stop the configuration broadcasting
*/
ESPTouch2.stop();

/**
* Function called on broadcasting start
*/
ESPTouch2.onStart(() => {console.log('Starting broadcast')};

/**
* Function called on broadcasting stop
*/
ESPTouch2.onStop(() => {console.log('Stopping broadcast')};

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 35

Collected releases
VersionPublishedDirect dependenciesOpen version
0.2.0Registry latest15 Sept 202319
0.1.3731 Jul 202319
0.1.3631 Jul 202319
0.1.3531 Jul 202319
0.1.3431 Jul 202319
0.1.3331 Jul 202319
0.1.3231 Jul 202319
0.1.3131 Jul 202319
0.1.3031 Jul 202319
0.1.2931 Jul 202319
0.1.2831 Jul 202319
0.1.2731 Jul 202319
0.1.2631 Jul 202319
0.1.2531 Jul 202319
0.1.2431 Jul 202319
0.1.2331 Jul 202319
0.1.2231 Jul 202319
0.1.2131 Jul 202319
0.1.2031 Jul 202319
0.1.1931 Jul 202319

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
lorenzovecchi/react-native-esptouch-2

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 16:04 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:653baf279d08e7f4f2435d7263658993937cf2b08bd6dcd9d4c76c157a679bdb