cordova-plugin-hotspot
Advanced tools
Comparing version 0.8.1 to 1.0.0
{ | ||
"name": "cordova-plugin-hotspot", | ||
"version": "0.8.1", | ||
"version": "1.0.0", | ||
"description": "Cordova WiFi Hotspot Plugin", | ||
@@ -5,0 +5,0 @@ "cordova": { |
@@ -150,3 +150,6 @@ /* | ||
* @param successCB | ||
* A callback function to be called when connected successful and is called with an array of JSON objects { ip: ..., mac: ... } | ||
* A callback function to be called when connected successful and is called with an array of JSON objects: | ||
* { | ||
* ip | mac | ||
* } | ||
* @param errorCB | ||
@@ -162,3 +165,3 @@ * A callback function to be called when connection was not successful | ||
/** | ||
* Connect to a WiFi Hotspot | ||
* Connect to a WiFi network | ||
* | ||
@@ -174,6 +177,6 @@ * @param {string} ssid | ||
*/ | ||
connectToHotspot: function (ssid, password, successCB, errorCB) { | ||
connectToWifi: function (ssid, password, successCB, errorCB) { | ||
cordova.exec(successCB, function (err) { | ||
errorCB(err); | ||
}, "HotSpotPlugin", "connectToHotspot", [ssid, password]); | ||
}, "HotSpotPlugin", "connectToWifi", [ssid, password]); | ||
}, | ||
@@ -350,3 +353,3 @@ | ||
/** | ||
* Start a perodically scan wifi | ||
* Start a periodically scan wifi | ||
* | ||
@@ -362,9 +365,9 @@ * @param {long} interval | ||
*/ | ||
startPeriodicallyScan: function (interval, duration, successCB, errorCB) { | ||
startWifiPeriodicallyScan: function (interval, duration, successCB, errorCB) { | ||
cordova.exec(successCB, function (err) { | ||
errorCB(err); | ||
}, 'HotSpotPlugin', 'startPeriodicallyScan', [interval, duration]); | ||
}, 'HotSpotPlugin', 'startWifiPeriodicallyScan', [interval, duration]); | ||
}, | ||
/** | ||
* Stop a perodically scan wifi | ||
* Stop a periodically scan wifi | ||
* | ||
@@ -376,6 +379,6 @@ * @param {function} successCB | ||
*/ | ||
stopPeriodicallyScan: function (successCB, errorCB) { | ||
stopWifiPeriodicallyScan: function (successCB, errorCB) { | ||
cordova.exec(successCB, function (err) { | ||
errorCB(err); | ||
}, 'HotSpotPlugin', 'stopPeriodicallyScan', []); | ||
}, 'HotSpotPlugin', 'stopWifiPeriodicallyScan', []); | ||
}, | ||
@@ -382,0 +385,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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
28561320
538
1