mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
fht interface syntax changed with culfw 1.27
git-svn-id: https://svn.fhem.de/fhem/trunk@423 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ad52c1cf86
commit
e7c235a67e
@ -595,18 +595,16 @@ CUL_Write($$$)
|
||||
###################
|
||||
# Rewrite message from FHZ -> CUL
|
||||
if(length($fn) <= 1) { # CUL Native
|
||||
;
|
||||
|
||||
} elsif($fn eq "04" && substr($msg,0,6) eq "010101") { # FS20
|
||||
$fn = "F";
|
||||
$msg = substr($msg,6);
|
||||
} elsif($fn eq "04" && substr($msg,0,6) eq "020183") { # FHT
|
||||
|
||||
my $moff = 10;
|
||||
while(length($msg) > $moff) {
|
||||
my $snd = substr($msg,6,4) .
|
||||
substr($msg,$moff,2) . "79" . substr($msg,$moff+2,2);
|
||||
CUL_SimpleWrite($hash, "T$snd");
|
||||
$moff += 4;
|
||||
}
|
||||
} elsif($fn eq "04" && substr($msg,0,6) eq "020183") { # FHT
|
||||
$fn = "T";
|
||||
$msg = substr($msg,6,4) . substr($msg,10);
|
||||
CUL_SimpleWrite($hash, $fn . $msg);
|
||||
return;
|
||||
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user