2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-28 11:01:59 +00:00

50_HP1000: add some HttpUtils_NonblockingGet() settings

git-svn-id: https://svn.fhem.de/fhem/trunk@13749 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
jpawlowski 2017-03-20 17:00:08 +00:00
parent 13e61053da
commit 3a8ba3ec6f

View File

@ -1239,13 +1239,21 @@ sub HP1000_PushSrv($$) {
HttpUtils_NonblockingGet( HttpUtils_NonblockingGet(
{ {
url => $srv_url . $cmd, url => $srv_url . $cmd,
timeout => $timeout, timeout => $timeout,
noshutdown => $http_noshutdown, noshutdown => $http_noshutdown,
data => undef, data => undef,
hash => $hash, hash => $hash,
callback => \&HP1000_ReturnSrv,
httpversion => "1.1", httpversion => "1.1",
callback => \&HP1000_ReturnSrv, loglevel => AttrVal( $name, "httpLoglevel", 5 ),
header => {
Agent => 'FHEM-HP1000/1.0.0',
'User-Agent' => 'FHEM-HP1000/1.0.0',
},
sslargs => {
SSL_verify_mode => 0,
},
} }
); );
@ -1327,12 +1335,18 @@ sub HP1000_PushWU($$) {
HttpUtils_NonblockingGet( HttpUtils_NonblockingGet(
{ {
url => $wu_url . $cmd, url => $wu_url . $cmd,
timeout => $timeout, timeout => $timeout,
noshutdown => $http_noshutdown, noshutdown => $http_noshutdown,
data => undef, data => undef,
hash => $hash, hash => $hash,
callback => \&HP1000_ReturnWU, callback => \&HP1000_ReturnWU,
httpversion => "1.1",
loglevel => AttrVal( $name, "httpLoglevel", 5 ),
header => {
Agent => 'FHEM-HP1000/1.0.0',
'User-Agent' => 'FHEM-HP1000/1.0.0',
},
} }
); );