diff --git a/UniFi Endpoint Monitor/module.php b/UniFi Endpoint Monitor/module.php index 37b84d1..0e0383a 100644 --- a/UniFi Endpoint Monitor/module.php +++ b/UniFi Endpoint Monitor/module.php @@ -76,6 +76,7 @@ public function ApplyChanges() $this->MaintainVariable("RSSI", $this->Translate("RSSI"), vtInteger, "", $vpos++, $this->ReadPropertyBoolean("DataPointConnection") == 1 && $this->ReadPropertyInteger("ConnectionType") == 0); $this->MaintainVariable("Noise", $this->Translate("Noise"), vtInteger, "", $vpos++, $this->ReadPropertyBoolean("DataPointConnection") == 1 && $this->ReadPropertyInteger("ConnectionType") == 0); $this->MaintainVariable("SignalStrength", $this->Translate("Signal Strength"), vtInteger, "", $vpos++, $this->ReadPropertyBoolean("DataPointConnection") == 1 && $this->ReadPropertyInteger("ConnectionType") == 0); + $this->MaintainVariable("ConnectedDevices", $this->Translate("Connected Devices"), vtInteger, "", $vpos++, $this->ReadPropertyBoolean("DataPointConnection") == 1 && $this->ReadPropertyInteger("ConnectionType") == 0); //Transfer Data $vpos = 300; @@ -253,6 +254,9 @@ public function EndpointMonitor() $SignalStrength = $JSONData["data"][0]["signal"]; SetValue($this->GetIDForIdent("SignalStrength"), $SignalStrength); $this->SendDebug($this->Translate("Endpoint Monitor"), $this->Translate("Connection Data SignalStrength ").$SignalStrength, 0); + $ConnectedDevices = $JSONData["data"][0]["num_sta"]; + SetValue($this->GetIDForIdent("ConnectedDevices"), ConnectedDevices); + $this->SendDebug($this->Translate("Endpoint Monitor"), $this->Translate("Connected Devices ").$ConnectedDevices, 0); } if ($this->ReadPropertyBoolean("DataPointTransfer") == 1 && $this->ReadPropertyInteger("ConnectionType") == 0 && $ConnectionConfigError == false) {