From 21e5db7f20216f4f2c364f571358f821a9b9554c Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Sat, 5 Nov 2016 20:39:20 +0100 Subject: [PATCH] Anpassungen am httpnonblicking und httpblocking --- 73_NUKIBridge.pm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/73_NUKIBridge.pm b/73_NUKIBridge.pm index c73238c..6cb16cc 100644 --- a/73_NUKIBridge.pm +++ b/73_NUKIBridge.pm @@ -374,10 +374,8 @@ sub NUKIBridge_Call($$$$$) { hash => $hash, chash => $chash, endpoint => $path, - header => "agent: FHEM/1.0\r\nUser-Agent: FHEM/1.0\r\nAccept: application/json", + header => "Accept: application/json", method => "GET", - doTrigger => 1, - noshutdown => 1, callback => \&NUKIBridge_Distribution, } ); @@ -398,7 +396,9 @@ sub NUKIBridge_Distribution($$$) { Log3 $name, 3, "NUKIBridge ($name) - Param Alive: $param->{alive}"; Log3 $name, 3, "NUKIBridge ($name) - Param Code: $param->{code}"; Log3 $name, 3, "NUKIBridge ($name) - Error: $err"; - Log3 $name, 3, "NUKIBridge ($name) - JSON: $json"; + Log3 $name, 3, "NUKIBridge ($name) - PATH: $param->{path}"; + Log3 $name, 3, "NUKIBridge ($name) - httpheader: $param->{httpheader}"; + @@ -646,7 +646,6 @@ sub NUKIBridge_CallBlocking($$$) { url => $url, timeout => 3, method => "GET", - noshutdown => 1, header => "Content-Type: application/json", });