WPASupplicant status

De la YO3ITI
Versiunea din 18 aprilie 2020 19:22, autor: Yo3iti (Discuție | contribuții) (Pagină nouă: <syntaxhighlight lang="python"> def getwpaclientstatus(): import subprocess try: writedatedlogmsg(networklog, 'Attempting WPA client status read. ', 4, networklogl...)
(dif) ← Versiunea anterioară | Versiunea curentă (dif) | Versiunea următoare → (dif)
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)