Angepasste Testversion

This commit is contained in:
Marko Oldenburg 2016-12-07 11:57:33 +01:00
parent 8ede678bee
commit cdd57888f7

View File

@ -527,15 +527,9 @@ sub NUKIBridge_InfoProcessing($$) {
readingsBeginUpdate($hash); readingsBeginUpdate($hash);
readingsBulkUpdate($hash,"appVersion",$decode_json->{versions}->{appVersion});
if( ref($decode_json->{versions}) eq "ARRAY" and scalar(@{$decode_json->{versions}}) > 0 ) { readingsBulkUpdate($hash,"firmwareVersion",$decode_json->{versions}->{firmwareVersion});
foreach my $versions (@{$decode_json->{versions}}) { readingsBulkUpdate($hash,"wifiFirmwareVersion",$decode_json->{versions}->{wifiFirmwareVersion});
readingsBulkUpdate($hash,"appVersion",$versions->{appVersion});
readingsBulkUpdate($hash,"firmwareVersion",$versions->{firmwareVersion});
readingsBulkUpdate($hash,"wifiFirmwareVersion",$versions->{wifiFirmwareVersion});
}
}
readingsBulkUpdate($hash,"bridgeType",$bridgeType{$decode_json->{bridgeType}}); readingsBulkUpdate($hash,"bridgeType",$bridgeType{$decode_json->{bridgeType}});
readingsBulkUpdate($hash,"hardwareId",$decode_json->{ids}{hardwareId}); readingsBulkUpdate($hash,"hardwareId",$decode_json->{ids}{hardwareId});
readingsBulkUpdate($hash,"serverId",$decode_json->{ids}{serverId}); readingsBulkUpdate($hash,"serverId",$decode_json->{ids}{serverId});
@ -597,7 +591,7 @@ sub NUKIBridge_CallBlocking($$$) {
my($err,$data) = HttpUtils_BlockingGet({ my($err,$data) = HttpUtils_BlockingGet({
url => $url, url => $url,
timeout => 15, timeout => 5,
method => "GET", method => "GET",
header => "Content-Type: application/json", header => "Content-Type: application/json",
}); });