You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to call the getCurrentConnections method to get WiFi information, but I got an empty array。
Current behavior
I tried to call the getCurrentConnections method to get WiFi information, but I got an empty array。
wifi.init({
iface: null // network interface, choose a random wifi interface if set to null
});
wifi.getCurrentConnections((error, networks) => {
if (error) {
console.log(error);
}
console.log(networks); // the networks is an empty array
});
Which are the affected features
node API
CLI
Which is your operating system?
Linux
Environment
Ubuntu 22.04 中文
Version of node-wifi
2.0.16
Steps to Reproduce
See the output of netsh wlan show interfaces
See the output of .getCurrentConnections()
Solutions
I fixed this problem by modifying the code in line 33 of the "src/linux current connection.js" file.
if(fields[0]=='yes'||fields[0]=='是'){}
The text was updated successfully, but these errors were encountered:
Expected behavior
I tried to call the getCurrentConnections method to get WiFi information, but I got an empty array。
Current behavior
I tried to call the getCurrentConnections method to get WiFi information, but I got an empty array。
Which are the affected features
Which is your operating system?
Linux
Environment
Ubuntu 22.04 中文
Version of node-wifi
2.0.16
Steps to Reproduce
See the output of netsh wlan show interfaces
See the output of .getCurrentConnections()
Solutions
I fixed this problem by modifying the code in line 33 of the "src/linux current connection.js" file.
The text was updated successfully, but these errors were encountered: