From eda424db8cbc60a33231dc42b3c05b07aca7ff1e Mon Sep 17 00:00:00 2001 From: wuehler <> Date: Mon, 24 Jun 2019 19:07:58 +0000 Subject: [PATCH] 74_Unifi: fixed (un)blockClient for UC Version 5.10.24 git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@19705 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/74_Unifi.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/FHEM/74_Unifi.pm b/FHEM/74_Unifi.pm index 205dd0eb8..999bdd167 100644 --- a/FHEM/74_Unifi.pm +++ b/FHEM/74_Unifi.pm @@ -69,10 +69,12 @@ # - fixed: 74_Unifi: fixed Loglevel # V 3.3.2 # - fixed: 74_Unifi: fixed restore clients at fhem restart +# V 3.3.3 +# - fixed: 74_Unifi: fixed (un)blockClient for UC Version 5.10.24 package main; -my $version="3.3.1"; +my $version="3.3.3"; # Default für clientReadings setzen. Die Readings waren der Standard vor Einführung des Attributes customClientReadings. # Eine Änderung hat Auswirkungen auf (alte) Moduldefinitionen ohne dieses Attribut. my $defaultClientReadings=".:^accesspoint|^essid|^hostname|^last_seen|^snr|^uptime"; #ist wegen snr vs rssi nur halb korrekt, wird aber auch nicht wirklich verwendet ;-) @@ -1785,7 +1787,7 @@ sub Unifi_BlockClient_Send($$) { %{$hash->{httpParams}}, url => $hash->{unifi}->{url}."cmd/stamgr", callback => \&Unifi_BlockClient_Receive, - data => "{\"mac\":\"$mac\",\"cmd\":\"block-sta\"}", + data => "{\"cmd\":\"block-sta\", \"mac\":\"".$mac."\"}", } ); return undef; @@ -1825,7 +1827,7 @@ sub Unifi_UnblockClient_Send($$) { %{$hash->{httpParams}}, url => $hash->{unifi}->{url}."cmd/stamgr", callback => \&Unifi_UnblockClient_Receive, - data => "{\"mac\":\"$mac\",\"cmd\":\"unblock-sta\"}", + data => "{\"cmd\":\"unblock-sta\", \"mac\":\"".$mac."\"}", } ); return undef; }