Git Product home page Git Product logo

Comments (5)

friedrith avatar friedrith commented on June 12, 2024

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.

friedrith avatar friedrith commented on June 12, 2024

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.

friedrith avatar friedrith commented on June 12, 2024

Ok the correction is now effective in the version of node-wifi on npm. Thanks for the help.

from node-wifi.

DaniyalGeek avatar DaniyalGeek commented on June 12, 2024

from node-wifi.

lock avatar lock commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.