cordova-plugin-hotspot
Advanced tools
Comparing version 0.2.0 to 0.4.0
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28509180
19
242
189