I'm building some code on java to disconnect the wifi in case theres an active wifi connection
To disconnect the wifi connection i use:
nmcli con down id [SSID NAME]
But i need the command to check if theres an active connection an if so, i need the name of the SSID Active wifi connection