node-wifi icon indicating copy to clipboard operation
node-wifi copied to clipboard

Test connection

Open valkheim opened this issue 6 years ago • 2 comments

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

valkheim avatar Oct 26 '19 12:10 valkheim

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

friedrith avatar Oct 29 '19 18:10 friedrith

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?

vinicius5581 avatar Dec 24 '20 09:12 vinicius5581