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

Blocking.pm: enable setting the telnet port by the user (Forum #68477)

git-svn-id: https://svn.fhem.de/fhem/trunk@14345 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-05-22 09:14:37 +00:00
parent 28c272fb85
commit 25ec2beed5

View File

@ -31,11 +31,18 @@ our %BC_hash;
my $telnetClient; my $telnetClient;
my $bc_pid = 0; my $bc_pid = 0;
use vars qw($BC_telnet); # set optionally by the user, Forum #68477
sub sub
BC_searchTelnet($) BC_searchTelnet($)
{ {
my ($blockingFn) = @_; my ($blockingFn) = @_;
if($BC_telnet) {
$BC_telnetDevice = $BC_telnet;
return;
}
$BC_telnetDevice = undef; $BC_telnetDevice = undef;
foreach my $d (sort keys %defs) { # foreach my $d (sort keys %defs) { #
my $h = $defs{$d}; my $h = $defs{$d};