Created
November 3, 2024 06:14
-
-
Save rtwalz/77ae4118560ea245b03d42fb0483c648 to your computer and use it in GitHub Desktop.
tasker wifi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Task: Temp | |
A1: Variable Set [ | |
Name: %ssid | |
To: MySsid | |
Structure Output (JSON, etc): On ] | |
A2: Variable Set [ | |
Name: %password | |
To: MyPassword | |
Structure Output (JSON, etc): On ] | |
A3: Java Function [ | |
Return: wifi_configuration | |
Class Or Object: WifiConfiguration | |
Function: new | |
{WifiConfiguration} () ] | |
A4: Java Function [ | |
Return: wifi_configuration_class | |
Class Or Object: wifi_configuration | |
Function: getClass | |
{Class} () ] | |
A5: Java Function [ | |
Return: wifi_configuration_ssid | |
Class Or Object: wifi_configuration_class | |
Function: getField | |
{java.lang.reflect.Field} (String) | |
Param 1 (String): "SSID" ] | |
A6: Java Function [ | |
Return: wc_password | |
Class Or Object: wifi_configuration_class | |
Function: getField | |
{java.lang.reflect.Field} (String) | |
Param 1 (String): "preSharedKey" ] | |
A7: Java Function [ | |
Class Or Object: wifi_configuration_ssid | |
Function: set | |
{} (Object, Object) | |
Param 1 (Object): wifi_configuration | |
Param 2 (Object): ""%ssid"" ] | |
A8: Java Function [ | |
Class Or Object: wc_password | |
Function: set | |
{} (Object, Object) | |
Param 1 (Object): wifi_configuration | |
Param 2 (Object): ""%password"" ] | |
A9: Java Function [ | |
Return: (WifiManager) wifimanager | |
Class Or Object: CONTEXT | |
Function: getSystemService | |
{Object} (String) | |
Param 1 (String): "wifi" ] | |
A10: Java Function [ | |
Class Or Object: wifimanager | |
Function: saveConfiguration | |
{boolean} () | |
Continue Task After Error:On ] | |
A11: Java Function [ | |
Class Or Object: wifimanager | |
Function: updateNetwork | |
{int} (WifiConfiguration) | |
Param 1 (WifiConfiguration): wifi_configuration | |
Continue Task After Error:On ] | |
A12: Java Function [ | |
Class Or Object: wifimanager | |
Function: addNetwork | |
{int} (WifiConfiguration) | |
Param 1 (WifiConfiguration): wifi_configuration | |
Continue Task After Error:On ] | |
A13: Java Function [ | |
Class Or Object: wifimanager | |
Function: connect | |
{} (WifiConfiguration, android.net.wifi.WifiManager$ActionListener) | |
Param 1 (WifiConfiguration): wifi_configuration | |
Continue Task After Error:On ] | |
A14: Java Function [ | |
Class Or Object: wifimanager | |
Function: save | |
{} (WifiConfiguration, android.net.wifi.WifiManager$ActionListener) | |
Param 1 (WifiConfiguration): wifi_configuration | |
Continue Task After Error:On ] | |
A15: Wait [ | |
MS: 500 | |
Seconds: 1 | |
Minutes: 0 | |
Hours: 0 | |
Days: 0 ] | |
A16: Connect To WiFi [ | |
SSID: %ssid ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment