add some function

This commit is contained in:
Sebastian 2021-06-21 19:24:41 +02:00
parent 6f0aee2a69
commit b6866dd44a
2 changed files with 7 additions and 4 deletions

View File

@ -485,7 +485,8 @@ sub Write {
HttpUtils_NonblockingGet( HttpUtils_NonblockingGet(
{ {
url => $hash->{URL} . $uri, url => $hash->{URL} . $uri,
timeout => 15, timeout => 45,
incrementalTimeout => 1,
hash => $hash, hash => $hash,
device_id => $deviceId, device_id => $deviceId,
data => $payload, data => $payload,
@ -501,8 +502,8 @@ sub Write {
"GardenaSmartBridge ($name) - Send with URL: $hash->{URL}$uri, HEADER: secret!, DATA: secret!, METHOD: $method" "GardenaSmartBridge ($name) - Send with URL: $hash->{URL}$uri, HEADER: secret!, DATA: secret!, METHOD: $method"
); );
# Log3($name, 3, Log3($name, 3,
# "GardenaSmartBridge ($name) - Send with URL: $hash->{URL}$uri, HEADER: $header, DATA: $payload, METHOD: $method"); "GardenaSmartBridge ($name) - Send with URL: $hash->{URL}$uri, HEADER: $header, DATA: $payload, METHOD: $method");
return; return;
} }
@ -535,6 +536,8 @@ sub ErrorHandling {
readingsBulkUpdate( $dhash, "state", "$err" ) readingsBulkUpdate( $dhash, "state", "$err" )
if ( ReadingsVal( $dname, "state", 1 ) ne "initialized" ); if ( ReadingsVal( $dname, "state", 1 ) ne "initialized" );
Log3 $name, 1, "[DEBUG] - Teufelchen 2: ".$decode_json;
readingsBulkUpdate( $dhash, "lastRequestState", "request_error", readingsBulkUpdate( $dhash, "lastRequestState", "request_error",
1 ); 1 );

View File

@ -1,2 +1,2 @@
UPD 2021-06-19_10:43:30 47068 FHEM/73_GardenaSmartBridge.pm UPD 2021-06-21_19:24:30 47160 FHEM/73_GardenaSmartBridge.pm
UPD 2021-06-09_09:52:26 55505 FHEM/74_GardenaSmartDevice.pm UPD 2021-06-09_09:52:26 55505 FHEM/74_GardenaSmartDevice.pm