Open issuefiler opened 5 months ago
WiFi.scan() should be able to differentiate the two SSIDs āš§ā (4 octets in UTF-8) and āF09FA78Aā (8 octets).
WiFi.scan()
š§
F09FA78A
> netsh wlan show networks
Interface name : Wi-Fi There are 5 networks currently visible. ā¦ā¦ SSID 3 : F09FA78A Network type : Infrastructure Authentication : WPA2-Personal Encryption : CCMP SSID 4 : F09FA78A Network type : Infrastructure Authentication : WPA2-Personal Encryption : CCMP ā¦ā¦
import WiFi from "node-wifi"; WiFi.init({iface: null}); console.log(await WiFi.scan());
ā¦ā¦ { mac: '28:cd:c1:0e:50:82', bssid: '28:cd:c1:0e:50:82', ssid: 'F09FA78A', channel: 3, frequency: 2422, signal_level: -67.5, quality: 65, security: 'WPA2-Personal', security_flags: 'CCMP ', mode: 'Unknown' }, { mac: '28:cd:c1:0e:50:80', bssid: '28:cd:c1:0e:50:80', ssid: 'F09FA78A', channel: 3, frequency: 2422, signal_level: -60, quality: 80, security: 'WPA2-Personal', security_flags: 'CCMP ', mode: 'Unknown' } ā¦ā¦
Windows
2.0.16
Have two Wi-Fi access points with the different SSIDs āš§ā (4 octets in UTF-8) and āF09FA78Aā (8 octets), and try scanning them with this Node.js package in Windows.
By not relying on netsh and calling the native Wi-Fi Windows API instead.
netsh
Expected behavior
WiFi.scan()
should be able to differentiate the two SSIDs āš§
ā (4 octets in UTF-8) and āF09FA78A
ā (8 octets).Current behavior
Which are the affected features
Which is your operating system?
Windows
Environment
Windows
Version of node-wifi
2.0.16
Steps to Reproduce
Have two Wi-Fi access points with the different SSIDs ā
š§
ā (4 octets in UTF-8) and āF09FA78A
ā (8 octets), and try scanning them with this Node.js package in Windows.Solutions
By not relying on
netsh
and calling the native Wi-Fi Windows API instead.