WPASupplicant status

De la YO3ITI
Salt la: navigare, căutare
def getwpaclientstatus():
    import subprocess

    try:
        writedatedlogmsg(networklog, 'Attempting WPA client status read. ', 4, networkloglevel)
        result = subprocess.Popen(['/sbin/wpa_cli', 'status'], stdout=subprocess.PIPE)
    except:
        writedatedlogmsg(networklog, 'Error reading wpa client status. ', 0, networkloglevel)
    else:
        writedatedlogmsg(networklog, 'Completed WPA client status read. ', 4, networkloglevel)