Skip to main content

Add Wifi Connection

Description

Adds wifi connection.

Function Signature:

def add_wifi_connection(ssid: str, password: str, connection_name: str, priority: int = 1) -> None:

Parameters

  • ssid (str): Input value for ssid.
  • password (str): Input value for password.
  • connection_name (str): Input value for connection_name.
  • priority (int): Priority value.

Returns

  • None: The function does not return a value.

Example Usage

# Example usage
ssid = "example"
password = "example"
connection_name = "example"
priority = 1
result = add_wifi_connection(ssid, password, connection_name, priority)
print(result)

Behavior

  • Executes the function logic with the provided arguments.
  • On success, returns the computed value or result object.

Error Handling

  • Exceptions are handled within the function where implemented.