Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cordova-plugin-hotspot

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-hotspot - npm Package Compare versions

Comparing version 0.2.0 to 0.4.0

hotspot-app.zip

2

package.json
{
"name": "cordova-plugin-hotspot",
"version": "0.2.0",
"version": "0.4.0",
"description": "Cordova WiFi Hotspot Plugin",

@@ -5,0 +5,0 @@ "cordova": {

@@ -53,3 +53,3 @@ /*

* @param {String} mode
* wireless mode
* wireless mode (Open, WEP, WPA, WPA_PSK)
* @param {String} password

@@ -104,3 +104,59 @@ * password to use

},
/**
* configure current WiFi Hotspot
*
* @param {String} ssid
* SSID to connect
* @param {String} mode
* mode use (Open, WEP, WPA, WPA_PSK)
* @param {String} password
* password to use
* @param {Function} successCB
* A callback function to be called when connected successful
* @param {Object} errorCB
* A callback function to be called when connection was not successful
*/
configureHotspot: function (ssid, mode, password, successCB, errorCB) {
cordova.exec(successCB, function (err) {
errorCB(err);
}, "HotSpotPlugin", "configureHotspot", [ssid, password, mode]);
},
/**
* add a WiFi network
*
* @param {String} ssid
* SSID to connect
* @param {String} mode
* mode use (Open, WEP, WPA, WPA_PSK)
* @param {String} password
* password to use
* @param {Function} successCB
* A callback function to be called when connected successful
* @param {Object} errorCB
* A callback function to be called when connection was not successful
*/
addWifiNetwork: function (ssid, mode, password, successCB, errorCB) {
cordova.exec(successCB, function (err) {
errorCB(err);
}, "HotSpotPlugin", "addWifiNetwork", [ssid, password, mode]);
},
/**
* Delete a WiFi network
*
* @param {String} ssid
* SSID to connect
* @param {Function} successCB
* A callback function to be called when connected successful
* @param {Object} errorCB
* A callback function to be called when connection was not successful
*/
removeWifiNetwork: function (ssid, successCB, errorCB) {
cordova.exec(successCB, function (err) {
errorCB(err);
}, "HotSpotPlugin", "removeWifiNetwork", [ssid]);
},
/**
* Check if WiFi is enabled

@@ -132,2 +188,58 @@ *

/**
* Scan wifi
*
* @param {Function} successCB
* A callback function to be called when scan is done
* @param {Object} errorCB
* An error callback
*/
scanWifi: function (successCB, errorCB) {
cordova.exec(successCB, function (err) {
errorCB(err);
}, 'HotSpotPlugin', 'scanWifi', []);
},
/**
* Scan wifi by level
*
* @param {Function} successCB
* A callback function to be called when scan is done
* @param {Object} errorCB
* An error callback
*/
scanWifiByLevel: function (successCB, errorCB) {
cordova.exec(successCB, function (err) {
errorCB(err);
}, 'HotSpotPlugin', 'scanWifiByLevel', []);
},
/**
* Start a perodically scan wifi
*
* @param {long} interval
* interval to use
* @param {long} duration
* duration to use
* @param {Function} successCB
* A callback function to be called when scan is started
* @param {Object} errorCB
* An error callback
*/
startPeriodicallyScan: function (interval, duration, successCB, errorCB) {
cordova.exec(successCB, function (err) {
errorCB(err);
}, 'HotSpotPlugin', 'startPeriodicallyScan', [interval, duration]);
},
/**
* Stop a perodically scan wifi
*
* @param {Function} successCB
* A callback function to be called when scan is stopped
* @param {Object} errorCB
* An error callback
*/
stopPeriodicallyScan: function (successCB, errorCB) {
cordova.exec(successCB, function (err) {
errorCB(err);
}, 'HotSpotPlugin', 'stopPeriodicallyScan', []);
},
/**
* Check if WiFi Direct is supported

@@ -134,0 +246,0 @@ *

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc