mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-22 08:11:44 +00:00
Only parse complete messages
git-svn-id: https://svn.fhem.de/fhem/trunk@1720 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8964ec1f15
commit
3fa467082e
@ -87,16 +87,18 @@ CUL_RFR_Parse($$)
|
|||||||
my $name = $hash->{NAME};
|
my $name = $hash->{NAME};
|
||||||
return "" if(IsIgnored($name));
|
return "" if(IsIgnored($name));
|
||||||
|
|
||||||
if($smsg =~ m/^T/) { $hash->{NR_TMSG}++ }
|
|
||||||
elsif($smsg =~ m/^F/) { $hash->{NR_FMSG}++ }
|
|
||||||
elsif($smsg =~ m/^E/) { $hash->{NR_EMSG}++ }
|
|
||||||
elsif($smsg =~ m/^K/) { $hash->{NR_KMSG}++ }
|
|
||||||
else { $hash->{NR_RMSG}++ }
|
|
||||||
|
|
||||||
$hash->{Clients} = $iohash->{Clients};
|
$hash->{Clients} = $iohash->{Clients};
|
||||||
$hash->{MatchList} = $iohash->{MatchList};
|
$hash->{MatchList} = $iohash->{MatchList};
|
||||||
foreach my $m (split(";", $smsg)) {
|
|
||||||
|
my @m = split(";", $smsg, -1); # process only messages terminated with ;
|
||||||
|
for(my $i = 0; $i < $#m; $i++) {
|
||||||
|
my $m = $m[$i];
|
||||||
CUL_Parse($hash, $iohash, $hash->{NAME}, $m, "X21");
|
CUL_Parse($hash, $iohash, $hash->{NAME}, $m, "X21");
|
||||||
|
if($m =~ m/^T/) { $hash->{NR_TMSG}++ }
|
||||||
|
elsif($m =~ m/^F/) { $hash->{NR_FMSG}++ }
|
||||||
|
elsif($m =~ m/^E/) { $hash->{NR_EMSG}++ }
|
||||||
|
elsif($m =~ m/^K/) { $hash->{NR_KMSG}++ }
|
||||||
|
else { $hash->{NR_RMSG}++ }
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user