2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

FRITZBOX: shows error: AuthorizationRequired

git-svn-id: https://svn.fhem.de/fhem/trunk@15948 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
tupol 2018-01-21 19:07:25 +00:00
parent 1e535e6da9
commit e0d80dc9ac

View File

@ -1359,6 +1359,14 @@ sub FRITZBOX_Readout_Run_Web($)
$returnStr .= "|" . join('|', @roReadings ) if int @roReadings;
return $name."|".encode_base64($returnStr,"");
}
if ( defined $result->{AuthorizationRequired} ) {
FRITZBOX_Log $hash, 2, "Error: AuthorizationRequired=".$result->{AuthorizationRequired};
my $returnStr = "Error|Authorization required";
$returnStr .= "|fhem->sidTime|0" if defined $result->{ResetSID};
$returnStr .= "|" . join('|', @roReadings ) if int @roReadings;
return $name."|".encode_base64($returnStr,"");
}
# !!! copes with fw 6.69 !!!
if ( ref $result->{wlanList} ne 'ARRAY' ) {