Git Product home page Git Product logo

Comments (12)

friedrith avatar friedrith commented on June 12, 2024

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.

tslater avatar tslater commented on June 12, 2024

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.

friedrith avatar friedrith commented on June 12, 2024

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.

friedrith avatar friedrith commented on June 12, 2024

If you have any idea how to manage it on debian, I will integrate in the project without a doubt.

from node-wifi.

tslater avatar tslater commented on June 12, 2024

from node-wifi.

tslater avatar tslater commented on June 12, 2024

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.

tslater avatar tslater commented on June 12, 2024

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.

tslater avatar tslater commented on June 12, 2024

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.

friedrith avatar friedrith commented on June 12, 2024

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.

friedrith avatar friedrith commented on June 12, 2024

In fact, I will to it today.

from node-wifi.

friedrith avatar friedrith commented on June 12, 2024

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.

friedrith avatar friedrith commented on June 12, 2024

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)

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.