mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
culfw version 1.46 FHT_compress changes
git-svn-id: https://svn.fhem.de/fhem/trunk@1751 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
12081a188e
commit
314d649d17
@ -93,6 +93,16 @@ CUL_RFR_Parse($$)
|
||||
my @m = split(";", $smsg, -1); # process only messages terminated with ;
|
||||
for(my $i = 0; $i < $#m; $i++) {
|
||||
my $m = $m[$i];
|
||||
|
||||
# Compressed FHT messages
|
||||
while($m =~ m/^T(....)(..)(..)(..)(..)(..)(.*)(..)$/) {
|
||||
my ($fhtid, $cmd, $source, $val, $cmd2, $val2, $rest, $rssi) =
|
||||
($1, $2, $3, $4, $5, $6, $7, $8);
|
||||
my $firstmsg = "T$fhtid$cmd$source$val$rssi";
|
||||
$m = "T$fhtid$cmd2$source$val2$rest$rssi";
|
||||
CUL_Parse($hash, $iohash, $hash->{NAME}, $firstmsg, "X21");
|
||||
}
|
||||
|
||||
CUL_Parse($hash, $iohash, $hash->{NAME}, $m, "X21");
|
||||
if($m =~ m/^T/) { $hash->{NR_TMSG}++ }
|
||||
elsif($m =~ m/^F/) { $hash->{NR_FMSG}++ }
|
||||
|
Loading…
x
Reference in New Issue
Block a user