Comments (5)
This line has beed written by an intern. Yes indeed it is quite weird. Maybe it is because there are space between and after SSID. Regex would be better.
from node-wifi.
On linux the stdout of nmcli
looks like :
*:
DBUS-PATH: /org/freedesktop/NetworkManager/AccessPoint/1095
SSID: Livebox-01ED
SSID-HEX: 4C697665626F782D30314544
BSSID: 30:7C:B2:18:01:ED
MODE: Infra
CHAN: 6
FREQ: 2437 MHz
RATE: 54 Mbit/s
SIGNAL: 35
BARS: ▂▄__
SECURITY: WPA1 WPA2
WPA-FLAGS: pair_tkip pair_ccmp group_tkip psk
RSN-FLAGS: pair_tkip pair_ccmp group_tkip psk
DEVICE: wlp1s0
ACTIVE: no
*:
DBUS-PATH: /org/freedesktop/NetworkManager/AccessPoint/1068
SSID: SFR_B5C0
SSID-HEX: 5346525F42354330
BSSID: 24:95:04:99:B5:C4
MODE: Infra
CHAN: 1
FREQ: 2412 MHz
RATE: 54 Mbit/s
SIGNAL: 29
BARS: ▂___
SECURITY: WPA1
WPA-FLAGS: pair_tkip pair_ccmp group_tkip psk
RSN-FLAGS: (none)
DEVICE: wlp1s0
ACTIVE: no
*:
DBUS-PATH: /org/freedesktop/NetworkManager/AccessPoint/1096
So there are spaces between labels and values. Regex would definitively be better
from node-wifi.
Ok the correction is now effective in the version of node-wifi
on npm. Thanks for the help.
from node-wifi.
from node-wifi.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
from node-wifi.
Related Issues (20)
- Error: spawn nmcli ENOENT (Linux/Raspberry Pi) HOT 15
- How to fix ssid name like �? HOT 2
- No Error Thrown at Wrong Password HOT 1
- [Bug]: Returning [] empty array on macOS Monterey HOT 21
- Send fake Mac address when connecting to a network HOT 1
- [Bug]: Linux Disconnect Not Working HOT 4
- [Feat]: More information about `.init()` HOT 2
- [Bug]: not support security WPA3 on Windows 10 HOT 1
- [Bug]: Win 10 and 11 differences in `getCurrentConnections`
- [Feat]: Get empty BSSID string in macOS Monterey (> 12.1) HOT 2
- [Feat]: Add language support HOT 1
- [Bug]: In ubuntu22.04, the return value is an empty array when i use getCurrentConnections method
- [Bug]: Wrong data returns for getCurrentConnections on windows 11 HOT 3
- [Bug]: Running in ESM (*.mjs) returns "ERROR : use init before" HOT 1
- Still maintained? HOT 1
- I can't get wifi list when I use wifi.scan().
- [Bug]: Unable to disconnect device in Ubuntu 20.04.3 LTS
- [Bug]: encoding error of network['security'] in scan result.
- It fails to differentiate SSIDs with Unicode and ones without.
- Unable to detect SSID after update to MacOS Sonoma 14.4 (23E214) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-wifi.