2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-23 14:46:24 +00:00

74_THINKINGCLEANER: add some HttpUtils_NonblockingGet() settings

git-svn-id: https://svn.fhem.de/fhem/trunk@13754 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
jpawlowski 2017-03-20 17:08:53 +00:00
parent 8e6191932f
commit 0291930cce

View File

@ -1094,16 +1094,23 @@ sub THINKINGCLEANER_SendCommand($$;$$) {
HttpUtils_NonblockingGet(
{
url => $URL,
timeout => $timeout,
noshutdown => $http_noshutdown,
data => undef,
hash => $hash,
service => $service,
cmd => $cmd,
type => $type,
url => $URL,
timeout => $timeout,
noshutdown => $http_noshutdown,
data => undef,
hash => $hash,
service => $service,
cmd => $cmd,
type => $type,
callback => \&THINKINGCLEANER_ReceiveCommand,
httpversion => "1.1",
callback => \&THINKINGCLEANER_ReceiveCommand,
loglevel => AttrVal( $name, "httpLoglevel", 4 ),
header => {
Agent => 'FHEM-THINKINGCLEANER/1.0.0',
'User-Agent' => 'FHEM-THINKINGCLEANER/1.0.0',
Accept => 'application/json;charset=UTF-8',
'Accept-Charset' => 'UTF-8',
},
}
);
@ -1121,15 +1128,24 @@ sub THINKINGCLEANER_SendCommand($$;$$) {
HttpUtils_NonblockingGet(
{
url => $URL,
timeout => $timeout,
noshutdown => $http_noshutdown,
data => $cmd,
hash => $hash,
service => $service,
cmd => $cmd,
type => $type,
callback => \&THINKINGCLEANER_ReceiveCommand,
url => $URL,
timeout => $timeout,
noshutdown => $http_noshutdown,
data => $cmd,
hash => $hash,
service => $service,
cmd => $cmd,
type => $type,
callback => \&THINKINGCLEANER_ReceiveCommand,
httpversion => "1.1",
loglevel => AttrVal( $name, "httpLoglevel", 4 ),
header => {
Agent => 'FHEM-THINKINGCLEANER/1.0.0',
'User-Agent' => 'FHEM-THINKINGCLEANER/1.0.0',
'Content-Type' => 'application/json',
Accept => 'application/json;charset=UTF-8',
'Accept-Charset' => 'UTF-8',
},
}
);
}