friedrith / node-wifi

📶 NodeJS tool to manage wifi (connections, scans)
MIT License
396 stars 160 forks source link

Test connection #97

Open valkheim opened 4 years ago

valkheim commented 4 years ago

Hi,

It would be nice to add a connectivity test.

My scenario: I'm using node-wifi at boot to achieve some wifi related tasks and I want to be sure I'm connected before doing so.

A possible implementation using NetworkManager would be to use the nm-online binary (see man page) or the more common nmcli con status <connection name>. Not sure about windows

friedrith commented 4 years ago

Hi, Does this proposal may be related to #92 ?

vinicius5581 commented 3 years ago

I have a similar ask and after reading #92 I don't think that is the solution I'm looking for.

I would like to make a call as wifi.status and get on the response an object containing the status either connected or not connected and if connected, if details about the current connection.

Thoughts?