Skip to content

feature: allow DeviceControl.wifi_connect to accept None as password#87

Open
Angel-Padilla wants to merge 1 commit into
ushiboy:mainfrom
Angel-Padilla:known_networks
Open

feature: allow DeviceControl.wifi_connect to accept None as password#87
Angel-Padilla wants to merge 1 commit into
ushiboy:mainfrom
Angel-Padilla:known_networks

Conversation

@Angel-Padilla
Copy link
Copy Markdown

This allows the package to call the nmcli util without passing a password as parameter, currently passing None would create the following command

sudo nmcli (--wait)? device wifi connect <SSID> password

which is an invalid command as it is missing the password argument, with this change the command will be

sudo nmcli (--wait)? device wifi connect <SSID>

allowing connection with open networks and networks already known by nmcli

After the changes we would be opening the door to connect to OPEN networks and also to networks already known by nmcli without the need of passing it's password again.

This allows the package to call the `nmcli` util without passing a password as parameter,
currently passing `None` would create the following command

`sudo nmcli (--wait)? device wifi connect <SSID> password`

which is an invalid command as it is missing the password argument, with this change the command
will be

`sudo nmcli (--wait)? device wifi connect <SSID>`

allowing connection with open networks and networks already known by `nmcli`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant