Module: lib-tde.network

This module adds a simple api to extract wifi ssid data

Info:

  • Copyright: 2020 Tom Meyers
  • Author: Tom Meyers

Static module functions

lib-tde.network.get_ssid_list (callback) Get a list back of all found ssid's by the network card


Static module functions

lib-tde.network.get_ssid_list (callback)
Get a list back of all found ssid's by the network card

Parameters:

  • callback function A callback with a table as input (List of all networks with the key being the ssid)

Usage:

    -- This will return {"network ssid": {"ssid": "network ssid", "bssid": "aa:bb:cc:ee:ff:11", "active": true}}
    lib-tde.network.get_ssid_list(function (list)
       for ssid, tbl in pairs(list) do
           print(tbl["ssid"] .. ": " .. tbl["bssid"] .. " - is connection active: " .. tbl["active"])
       end
    end)
generated by LDoc 1.4.6 Build with 💜 By F0xedb Last updated 2021-05-21 03:30:15