Skip to content

Commit 1b96e41

Browse files
committed
Readme connect hidden networks
1 parent 068722f commit 1b96e41

4 files changed

Lines changed: 12 additions & 3 deletions

File tree

Examples/Example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"dependencies": {
1010
"react": "16.3.1",
1111
"react-native": "0.55.4",
12-
"react-native-android-wifi": "0.0.36"
12+
"react-native-android-wifi": "0.0.37"
1313
},
1414
"devDependencies": {
1515
"babel-jest": "23.0.1",

Examples/ExampleAPI25/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"dependencies": {
1010
"react": "16.3.1",
1111
"react-native": "0.55.4",
12-
"react-native-android-wifi": "0.0.36"
12+
"react-native-android-wifi": "0.0.37"
1313
},
1414
"devDependencies": {
1515
"babel-jest": "23.0.1",

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,3 +184,12 @@ Method to force wifi usage. Android by default sends all requests via mobile dat
184184
//Is important to enable only when communicating with the device via wifi
185185
//and remember to disable it when disconnecting from device.
186186
wifi.forceWifiUsage(true);
187+
```
188+
189+
190+
Add a hidden wifi network and connect to it
191+
``` javascript
192+
//Callback returns true if network added and tried to connect to it successfully
193+
//It may take up to 15s to connect to hidden networks
194+
wifi.connectToHiddenNetwork(ssid, password, (networkAdded) => {});
195+
```

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-android-wifi",
3-
"version": "0.0.36",
3+
"version": "0.0.37",
44
"description": "A react-native implementation for viewing and connecting to Wifi networks on Android devices.",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)