02_HTTPAPI: contrib version

git-svn-id: https://svn.fhem.de/fhem/trunk@28902 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
DS_Starter
2024-05-24 22:05:36 +00:00
parent 672249be8d
commit 1b1d7304bd

View File

@@ -252,10 +252,13 @@ sub HTTPAPI_Read {
return if (!$chash);
$chash->{encoding} = $encoding;
$chash->{cname} = $name;
$chash->{infix} = $hash->{INFIX};
$chash->{CD}->blocking(0);
return;
}
$infix = $hash->{infix};
# read data
my $buf;
my $ret = sysread($hash->{CD}, $buf, 2048);