node-wifi
node-wifi copied to clipboard
Update linux-connect.js
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
Hi, do you plan to keep working on it ?
@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