Skip to content

Commit

Permalink
version bump 3.1.0, readme move scan to android fns
Browse files Browse the repository at this point in the history
  • Loading branch information
tripflex committed Aug 29, 2018
1 parent 94dc9d0 commit 62f4ce1
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 12 deletions.
32 changes: 22 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WifiWizard2 - 3.0
# WifiWizard2 - 3.1.0

WifiWizard2 enables Wifi management for both Android and iOS applications within Cordova/Phonegap projects.

Expand Down Expand Up @@ -59,10 +59,6 @@ WifiWizard2.getConnectedSSID()
WifiWizard2.getConnectedBSSID()
```
- Same as above, except BSSID (mac) is returned
```javascript
WifiWizard2.scan([options])
```
- Same as calling `startScan` and then `getScanResults`, except this method will only resolve the promise after the scan completes and returns the results.

##### Thrown Errors

Expand All @@ -74,8 +70,7 @@ For functionality, you need to note the following:
- Connect/Disconnect only works for iOS11+
- Can't run in the simulator so you need to attach an actual device when building with xCode
- Will ensure 'HotspotConfiguration' and 'NetworkExtensions' capabilities are added to your xCode project


- To connect to open network omit `ssidPassword` or call with `false`

```javascript
WifiWizard2.iOSConnectNetwork(ssid, ssidPassword)
Expand Down Expand Up @@ -168,6 +163,11 @@ WifiWizard2.remove(ssid)
WifiWizard2.listNetworks()
```

```javascript
WifiWizard2.scan([options])
```
- Same as calling `startScan` and then `getScanResults`, except this method will only resolve the promise after the scan completes and returns the results.

```javascript
WifiWizard2.startScan()
```
Expand Down Expand Up @@ -374,9 +374,9 @@ Run ```cordova plugin add wifiwizard2```
To install and use this plugin in a Meteor project, you have to specify the exact version from NPM repository:
[https://www.npmjs.com/package/wifiwizard2](https://www.npmjs.com/package/wifiwizard2)

As of 4/12/2018, the latest version is 3.0.0:
As of 8/28/2018, the latest version is 3.1.0:

```meteor add cordova:wifiwizard2@3.0.0```
```meteor add cordova:wifiwizard2@3.1.0```

### Errors/Rejections
Methods now return formatted string errors as detailed below, instead of returning generic error messages. This allows you to check yourself what specific error was returned, and customize the error message.
Expand Down Expand Up @@ -405,11 +405,23 @@ wifiConnection.then( result => {

License
----

Apache 2.0

## Changelog:

#### 3.1.0 - August 28, 2018
- Fixed/Added compatibility with iOS to connect to open network
- Fixed Uncaught SyntaxError in JavaScript from using let (changed to var)
- Fixed main thread blocked while connecting to a network by connecting asynchronously (props @jack828)
- Add isHiddenSSID config for connecting Android devices to hidden networks (props @jack828)
- Update iOSConnectNetwork to return real response in promise (props @saoron)
- Correct iOS SSID comparison (props @saoron)
- iOS Add HotspotConfiguration & NetworkExtension capabilities automatically (props @saoron)
- Removed `jdk.nashorn.internal.codegen.CompilerConstants` import (props @jack828)
- Reduce connection retry count from 60 -> 15 (props @jack828)
- Fixed `Object cannot be converted to int` in Android code (props @xLarry)
- Props to @arsenal942 @jack828 @xLarry @saoron for contributions

#### 3.0.0 - April 12, 2018
- Completely refactored JS methods, all now return Promises
- Added `getWifiIP` and `getWifiIPInfo` functions
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wifiwizard2",
"version": "3.0.0",
"version": "3.1.0",
"cordova": {
"id": "wifiwizard2",
"platforms": [
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="wifiwizard2"
version="3.0.0">
version="3.1.0">

<name>WifiWizard2</name>
<description>Cordova Wifi Manager for Android and iOS</description>
Expand Down

0 comments on commit 62f4ce1

Please sign in to comment.