the SSID of the network to join
Optionalpassphrase: string | nullthe network passphrase; required for WEP/WPA/WPA2/WPA3 Personal networks
Optionalinterface: string | nullthe interface name as returned by interfaces(); omit for the system's default Wi-Fi interface
A Promise that resolves true if joined successfully, false if no network with that SSID was found, or rejects if the interface doesn't exist or the association attempt fails
Scans for a network by SSID and joins it. Enterprise networks are not supported. This can take several seconds; it runs off the main thread so it does not block the app.