Comments (12)
Please give your version of debian.
nmcli
seemed to be good cli interface a priori but it is quite mis configured in some distributions.
from node-wifi.
Does this work on some distros? Which ones? I am in an embedded environment, but I might be able to just switch. I'm on Debian 8.3
Distributor ID: Debian
Description: Debian GNU/Linux 8.3 (jessie)
Release: 8.3
Codename: jessie
from node-wifi.
It works in Ubuntu but not on debian nor raspbian. It is a issue to resolve but I would like to resolve it with keeping nmcli instead of using another command line tool. I already tried a quite long time but nmcli
is not well configured in few distributions.
from node-wifi.
If you have any idea how to manage it on debian, I will integrate in the project without a doubt.
from node-wifi.
from node-wifi.
I have an update here. nmcli works if I do:
nmcli dev wifi con "MY_SSID" password 'MY_PASSWORD'
instead of nmcli dev wifi con "MY_SSID" password "MY_PASSWORD"
. I have a dollar sign in my password. I wonder if that is related?
from node-wifi.
It also works if I add a $, must be bash thinking that $ is a variable name? Maybe we need something like this across the commands: http://stackoverflow.com/a/7685469/1629323. What do you think @thibaultfriedrich ?
from node-wifi.
Calling the escape function on my string before connecting fixes it. Is that something we'd want to add to the code itself?
from node-wifi.
Sorry for the absence, do not hesitate to propose a pull request, if it works for you, I will test on our machines before merging it.
from node-wifi.
In fact, I will to it today.
from node-wifi.
The following function doesn't work at all for me. May you be more accurate of which function works for you.
var escapeShell = function(cmd) {
return '"'+cmd.replace(/(["\s'$`\\])/g,'\\$1')+'"';
};
Moreover, I already use ' instead of " for password and ssid.
from node-wifi.
This issue 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.