Skip to content

Commit

Permalink
Merge pull request #817 from hplato/razberry
Browse files Browse the repository at this point in the history
raZberry v3.0.7 - fixed online status when good data received
  • Loading branch information
hplato authored Feb 2, 2021
2 parents 82f28f2 + 39cd75a commit 90d5b05
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/raZberry.pm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
=head1 B<raZberry> v3.0.6
=head1 B<raZberry> v3.0.7
#test command setup
#command queue
Expand Down Expand Up @@ -632,11 +632,12 @@ sub process_check {
if ($com_status eq "online") {
$self->{com_warning} = 0;
if (defined $self->{com_poll_interval}) {
main::print_log("[RaZberry:" . $self->{host} . "] Valid Data Received. Changing poll rate to $self->{com_poll_interval}.");
main::print_log("[RaZberry:" . $self->{host} . "] Valid Data Received. Changing poll rate back to $self->{com_poll_interval}.");
$self->{config}->{poll_seconds} = $self->{com_poll_interval};
$self->{com_poll_interval} = undef;
$self->stop_timer;
$self->start_timer;
$self->{child_object}->{comm}->set( $com_status, 'poll' );
}
} elsif ($com_status eq "offline") {
$self->{com_warning}++;
Expand All @@ -646,6 +647,8 @@ sub process_check {
$self->{config}->{poll_seconds} = 10 unless ($self->{config}->{poll_seconds} <= 10);
$self->stop_timer;
$self->start_timer;
$self->{child_object}->{comm}->set( $com_status, 'poll' );

}
}
if ( $self->{status} ne $com_status ) {
Expand Down Expand Up @@ -2185,6 +2188,9 @@ sub update_data {

# ZWayVDev_zway_18-0-113-8-1-A
=head2 CHANGELOG
v3.0.7
- fixed offline polling for push operation
v3.0
- added 3 10 second check on push mode status pull
- use process_item to prevent pauses
Expand Down

0 comments on commit 90d5b05

Please sign in to comment.