2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 04:36:36 +00:00

70_BOTVAC.pm: handle initial values: response header, error, data, sslArgs hash

git-svn-id: https://svn.fhem.de/fhem/trunk@21482 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
vuffiraa 2020-03-22 15:45:37 +00:00
parent 3c3e3d1bcc
commit b4ee811f32
2 changed files with 7 additions and 4 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- bugfix: 70_BOTVAC: handle some initial values
- feature: 31_HUEDevice: added batteryPercent reading
battery reading is deprecated, will be removed later
- feature: 93_DbRep: add column header for custom selects (sqlCmd),

View File

@ -668,7 +668,7 @@ sub SendCommand($$;$$@) {
my $keepalive = 0;
my $reqId = 0;
my $URL = "https://";
my %sslArgs = {};
my %sslArgs = ();
my %header;
my $data;
my $response;
@ -881,10 +881,12 @@ sub ReceiveCommand($$$) {
my $loadMap;
my $return;
my $reqId = 0;
my $closeConnection = ($respHeader =~ m/.*[Cc]onnection: keep-alive.*/ ? 0 : 1);
my $closeConnection = (defined($respHeader) && $respHeader =~ m/.*[Cc]onnection: keep-alive.*/ ? 0 : 1);
Log3($name, 5, "BOTVAC $name: called function ReceiveCommand() rc: $rc err: $err data: $data ");
Log3($name, 5, "BOTVAC $name: http header: $respHeader") if (defined($respHeader));
Log3($name, 5, "BOTVAC $name: called function ReceiveCommand() rc: $rc");
Log3($name, 5, "BOTVAC $name: header: $respHeader") if (defined($respHeader));
Log3($name, 5, "BOTVAC $name: err: $err") if (defined($err));
Log3($name, 5, "BOTVAC $name: data: $data") if (defined($data));
readingsBeginUpdate($hash);