addNetwork

Export, used to add network.

Reference

Type Reference: WifiNetwork

---@param data WifiNetwork
---@return boolean, string | nil
function addNetwork(data) end

Usage example

client.lua
  local success, errorMessage = exports.fd_laptop:addNetwork({
      ssid = "testing_network",
      label = "Testing Network",
      password = "123456"
  })

  if not success then
      print(errorMessage)
  end