Wifi

In this section you will learn how to get detailed information about available wifi networks:

For function reference and examples we assume, that we imported systeminformation as follows:

    const si = require('systeminformation');

## Wifi Networks

All functions in this section return a promise or can be called with a callback function (parameter cb in the function reference)

Function | Result object | Linux | BSD | Mac | Win | Sun | Comments
--- | --- | --- | --- | --- | --- | --- | ---
si.wifiNetworks(cb) | [{...}] | X | X | X | X | X | array of available wifi networks
| [0].ssid | X |  | X | X |  | Wifi network SSID
| [0].bssid | X |  | X | X |  | BSSID (mac)
| [0].mode | X |  |  |  |  | mode
| [0].channel | X |  | X | X |  | channel
| [0].frequency | X |  | X | X |  | frequency in MHz
| [0].signalLevel | X |  | X | X |  | signal level in dB
| [0].quality | X |  | X | X |  | quality in %
| [0].security | X |  | X | X |  | array e.g. WPA, WPA-2
| [0].wpaFlags | X |  | X | X |  | array of WPA flags
| [0].rsnFlags | X |  |  |  |  | array of RDN flags

##### Example

    const si = require('systeminformation');
    si.wifiNetworks().then(data => console.log(data));

    [
      {
        ssid: 'INTERNAL-WIFI',
        bssid: 'ab:01:14:4f:d3:82',
        mode: '',
        channel: 44,
        frequency: 5220,
        signalLevel: -68,
        quality: 64,
        security: [ 'WPA', 'WPA2' ],
        wpaFlags: [ 'PSK/TKIP/TKIP', 'PSK/AES/TKIP' ],
        rsnFlags: []
      },
      {
        ssid: 'FREE Wifi',
        bssid: 'aa:14:e5:16:97:f3',
        mode: '',
        channel: 44,
        frequency: 5220,
        signalLevel: -50,
        quality: 100,
        security: [ 'WPA', 'WPA2' ],
        wpaFlags: [ 'PSK/TKIP/TKIP', 'PSK/AES/TKIP' ],
        rsnFlags: []
      },
      ...
    ]