tripflex / WifiWizard2

A Cordova plugin for managing Wifi networks (new version of WiFiWizard) - Latest is version 3+

Home Page:https://www.npmjs.com/package/cordova-plugin-wifiwizard2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting duplicates from scanAsync in version 2.1.0

simonkincaidkintronix opened this issue · comments

Hi,

I'm getting duplicate SSIDs from scanAsync. Has anyone else had this issue? It is an outstanding issue in WifiWizard 1. Just doing:

WifiWizard2.scanAsync().then(result => {
for (let x in result) {
console.log(result[x].SSID);
console.log(result[x].level);
console.log(result[x].BSSID);
console.log(result[x].frequency);
console.log(result[x].capabilities);
}
});

[20:36:16] console.log: BTWifi-with-FON
[20:36:16] console.log: -43
[20:36:16] console.log: a2:8e:78:2b:9f:8c
[20:36:16] console.log: 5180
[20:36:16] console.log: [ESS]
[20:36:16] console.log: BTWifi-with-FON
[20:36:16] console.log: -41
[20:36:16] console.log: a2:8e:78:2b:a0:8f
[20:36:16] console.log: 2462
[20:36:16] console.log: [ESS]
[20:36:16] console.log: BTWifi-with-FON
[20:36:16] console.log: -78
[20:36:16] console.log: 1a:62:2c:35:ba:e3
[20:36:16] console.log: 2462
[20:36:16] console.log: [ESS]

It's other SSIDs as well. Interesting that they have different frequencies. Any ideas?

Also getConnectedSSID() doesn't appear to be actually in version 2.10?

Just FYI, the duplicates are there either with different BSSIDs or frequencies. So it's actually doing it's job :-)

Yeah it's because you're either seeing 5G network under same SSID, or the Wifi device has multiple radios (which would be clearly seen by different MAC addresses - BSSID)

Please switch to latest version 3.0.0, I did however push 2.1.1 as well, but latest release is version 3+ ... but a lot of things changed including method/functions so make sure to read the README for upgrading .. it's not a direct drop in replacement