Skip to content

Commit

Permalink
Update module.php
Browse files Browse the repository at this point in the history
  • Loading branch information
elueckel authored Aug 25, 2024
1 parent 9cfd3f4 commit b1f47fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UniFi Multi Endpoint Monitor/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public function EndpointMonitor()
$this->SendDebug($this->Translate("Endpoint Monitor"), $this->Translate("Connection Data Uptime in hours ").round($Uptime / 3600, 0), 0);
}

if ($this->ReadPropertyBoolean("DataPointConnection") == 1 AND $ConnectionType == 0 AND $ConnectionConfigError == false);
if ($this->ReadPropertyBoolean("DataPointConnection") == 1 && $ConnectionType == 0 && $ConnectionConfigError == false);
{
$Accesspoint = $DeviceFromController["ap_mac"];
$this->SetValue($this->GetIDForIdent($DeviceMac."Accesspoint"), $Accesspoint);
Expand All @@ -283,7 +283,7 @@ public function EndpointMonitor()
$this->SetValue($this->GetIDForIdent($DeviceMac."SignalStrength"), $SignalStrength);
$this->SendDebug($this->Translate("Endpoint Monitor"), $this->Translate("Connection Data SignalStrength ").$SignalStrength, 0);
}
if ($this->ReadPropertyBoolean("DataPointTransfer") == 1 AND $ConnectionType == 0 AND $ConnectionConfigError == false)
if ($this->ReadPropertyBoolean("DataPointTransfer") == 1 && $ConnectionType == 0 && $ConnectionConfigError == false)
{
$TXBytes = $DeviceFromController["tx_bytes"];
$this->SetValue($this->GetIDForIdent($DeviceMac."TXBytes"), $TXBytes / 1000000);
Expand Down

0 comments on commit b1f47fc

Please sign in to comment.