Skip to content

Commit 165ad99

Browse files
author
Parth Barot
authored
Update README.md
Adding docs for `isRemoveWifiNetwork` and `reScanAndLoadWifiList`
1 parent 6c51d58 commit 165ad99

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)