Skip to content

Commit 11b213b

Browse files
author
Parth Barot
committed
Merge branch 'master' of github.com:BoTreeConsultingTeam/react-native-android-wifi
2 parents 3d45f98 + 165ad99 commit 11b213b

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,19 @@ Get current IP
122122
wifi.getIP((ip)=>{
123123
console.log(ip);
124124
});
125-
```
125+
```
126+
127+
Remove/Forget the Wifi network from mobile by SSID, returns boolean
128+
``` javascript
129+
wifi.isRemoveWifiNetwork(ssid, (isRemoved) => {
130+
console.log("Forgetting the wifi device - " + ssid);
131+
});
132+
```
133+
134+
Starts native Android wifi network scanning and returns list
135+
``` javascript
136+
wifi.reScanAndLoadWifiList((wifiStringList) => {
137+
var wifiArray = JSON.parse(wifiStringList);
138+
console.log('Detected wifi networks - ',wifiArray);
139+
});
140+
```

0 commit comments

Comments
 (0)