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

Update linux-connect.js

Open FinlayDaG33k opened this issue 5 years ago • 2 comments

Description

Start working on getting additional data as per #92.
Once finished, this PR should return some additional information when a connection has been established.

Motivation and Context

This change will remove the need of checking the current connections "manually" in order to find out certain things like the interface used and some details about the AP.

Usage examples

wifi.connect({options}, (net) => {
  // Do things with the received information
});

How Has This Been Tested?

Only on my local machine thus far

Types of changes

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [x] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to change)

todo list:

  • [x] Get interface name used
  • [x] Get MAC for the interface used
  • [ ] Get IPv4 and IPv6 addresses used (along with things that come with it like the netmask)
  • [ ] Get SSID of the AP
  • [ ] Get bssid of the AP
  • [ ] Get MAC of the AP (equaling the bssid for retrocompatibility)
  • [ ] Get channel of the AP
  • [ ] Get frequency of the AP
  • [ ] Get signal level
  • [ ] Get signal quality in %
  • [ ] Get security used
  • [ ] Get security flags
  • [ ] Get current mode
  • [ ] Add compatibility with Mac and Windows

FinlayDaG33k avatar Sep 19 '19 11:09 FinlayDaG33k

Hi, do you plan to keep working on it ?

valkheim avatar Nov 22 '19 10:11 valkheim

@valkheim Under all the work I have found myself in related to other projects and finding a new dayjob, unfortunately not :\

I also think it might be better to scrap this specific PR in order to work on something like we've described here: https://github.com/friedrith/node-wifi/issues/92#issuecomment-549043216

FinlayDaG33k avatar Nov 22 '19 13:11 FinlayDaG33k