2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-21 14:04:15 +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

@ -1360,6 +1360,14 @@ sub FRITZBOX_Readout_Run_Web($)
return $name."|".encode_base64($returnStr,""); 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 !!! # !!! copes with fw 6.69 !!!
if ( ref $result->{wlanList} ne 'ARRAY' ) { if ( ref $result->{wlanList} ne 'ARRAY' ) {
FRITZBOX_Log $hash, 4, "Recognized query answer of firmware 6.69"; FRITZBOX_Log $hash, 4, "Recognized query answer of firmware 6.69";