davesteele / comitup

Bootstrap Wifi support over Wifi
https://davesteele.github.io/comitup/
GNU General Public License v2.0
320 stars 54 forks source link

how to disconnect from a Wifi #151

Closed dheim-pi closed 3 years ago

dheim-pi commented 3 years ago

Hello, is there any way to reset or disconnect from a wifi connection through comitup. Or to forget wifi connections that I entered

davesteele commented 3 years ago

Delete the connection using comitup-cli or D-Bus. See the man pages for comitup-cli and comitup.

dheim-pi commented 3 years ago

Many Thanks for the quick replay. I was not aware about comitup-cli.

revantjhalani commented 3 years ago

@davesteele I tried using the ciu_client.ciu_delete(connection) method by importing the library and loading the connection variable through state. But that basically disconnects from wifi without the wifi coming back up again. My preferred method of disconnection via a python script was to just run a subprocess and pass d and then q to comitup-cli command but that works once or twice and then just doesn't. Is there a better way to disconnect? Or am I doing something wrong with the ciu_delete method? I do not want to disable the wifi, just to forget a network via a script.

davesteele commented 3 years ago

Ciu_client and d do the same thing. If you just disconnect, comitup will just reconnect again.