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

Patch from Matthias

git-svn-id: https://svn.fhem.de/fhem/trunk@2716 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2013-02-13 07:28:47 +00:00
parent 3aad251496
commit 23aaded58c

View File

@ -26,6 +26,7 @@ my %gets = ( # Name, Data to send to the CUL, Regexp for the answer
"uptime" => ["t", '^[0-9A-F]{8}[\r\n]*$' ],
"fhtbuf" => ["T03", '^[0-9A-F]+[\r\n]*$' ],
"cmds" => ["?", '.*Use one of[ 0-9A-Za-z]+[\r\n]*$' ],
"credit10ms" => [ "X", '^.. *\d*[\r\n]*$' ],
);
my %sets = (
@ -470,6 +471,8 @@ READEND:
$msg = hex($msg)/125;
$msg = sprintf("%d %02d:%02d:%02d",
$msg/86400, ($msg%86400)/3600, ($msg%3600)/60, $msg%60);
} elsif($a[1] eq "credit10ms") {
($msg) = ($msg =~ /^.. *(\d*)[\r\n]*$/);
}
$msg =~ s/[\r\n]//g;
@ -1208,6 +1211,10 @@ CUL_Attr(@)
CUL to interpret the response of this command. See also the raw-
command.
</li><br>
<li>credit10ms<br>
One may send for a duration of credit10ms*10 ms before the send limit is reached and a LOVF is
generated.
</li><br>
</ul>
<a name="CULattr"></a>