98_BOSEST: add more logging
git-svn-id: https://svn.fhem.de/fhem/trunk@14052 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -2057,6 +2057,7 @@ sub BOSEST_finishedDiscovery($) {
|
|||||||
|
|
||||||
#start discovery again after 67s
|
#start discovery again after 67s
|
||||||
InternalTimer(gettimeofday()+67, "BOSEST_startDiscoveryProcess", $hash, 1);
|
InternalTimer(gettimeofday()+67, "BOSEST_startDiscoveryProcess", $hash, 1);
|
||||||
|
Log3 $hash, 5, "BOSEST: finished discovery";
|
||||||
|
|
||||||
for($i = 1; $i < @commands; $i = $i+2) {
|
for($i = 1; $i < @commands; $i = $i+2) {
|
||||||
my $command = $commands[$i];
|
my $command = $commands[$i];
|
||||||
@@ -2306,9 +2307,11 @@ sub BOSEST_checkWebSocketConnection($) {
|
|||||||
my ($hash) = @_;
|
my ($hash) = @_;
|
||||||
if(defined($hash->{helper}{bosewebsocket})) {
|
if(defined($hash->{helper}{bosewebsocket})) {
|
||||||
#run mojo loop not longer than 0.5ms
|
#run mojo loop not longer than 0.5ms
|
||||||
|
Log3 $hash, 5, "BOSEST: run mojo loop";
|
||||||
my $id = Mojo::IOLoop->timer(0.0005 => sub {});
|
my $id = Mojo::IOLoop->timer(0.0005 => sub {});
|
||||||
Mojo::IOLoop->one_tick;
|
Mojo::IOLoop->one_tick;
|
||||||
Mojo::IOLoop->remove($id);
|
Mojo::IOLoop->remove($id);
|
||||||
|
Log3 $hash, 5, "BOSEST: finished mojo loop";
|
||||||
}
|
}
|
||||||
|
|
||||||
InternalTimer(gettimeofday()+0.7, "BOSEST_checkWebSocketConnection", $hash, 1);
|
InternalTimer(gettimeofday()+0.7, "BOSEST_checkWebSocketConnection", $hash, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user