summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/includes/restfunctions.php
diff options
context:
space:
mode:
authorJose M. Guisado <jguisado@soleta.eu>2021-05-04 15:20:14 +0000
committerOpenGnSys Support Team <soporte-og@soleta.eu>2021-05-10 10:33:10 +0200
commit8634dd3ac37bc821afd0e7f321eb0064247074a2 (patch)
treed4ae1cc832bda46da1d5f458170185a7b5410ce8 /admin/WebConsole/includes/restfunctions.php
parentd3da332d007872a32b4f9ccd66370d3f9acd9458 (diff)
#995 Show client link speed if available
If the clients API response included speed information, show it in the default room view. In case link speed is less than 1000 Mbit, highlight so.
Diffstat (limited to 'admin/WebConsole/includes/restfunctions.php')
-rw-r--r--admin/WebConsole/includes/restfunctions.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/admin/WebConsole/includes/restfunctions.php b/admin/WebConsole/includes/restfunctions.php
index e7b1e1e6..2141c3b1 100644
--- a/admin/WebConsole/includes/restfunctions.php
+++ b/admin/WebConsole/includes/restfunctions.php
@@ -77,6 +77,7 @@ define('OG_REST_PARAM_AM_PM', 'am_pm');
define('OG_REST_PARAM_MINUTES', 'minutes');
define('OG_REST_PARAM_MODE', 'mode');
define('OG_REST_PARAM_SCOPE_NAME', 'scope_name');
+define('OG_REST_PARAM_SPEED', 'speed');
define('TYPE_COMMAND', 1);
define('TYPE_PROCEDURE', 2);
@@ -188,6 +189,22 @@ function clients($case, $ips) {
return $trama_notificacion;
}
+function clients_v2($case, $ips) {
+
+ switch ($case) {
+ case 1:
+ $type = POST;
+ $data = array(OG_REST_PARAM_CLIENTS => $ips);
+ break;
+ case 2:
+ $type = GET;
+ $data = null;
+ break;
+ }
+
+ return common_request(OG_REST_CMD_CLIENTS, $type, $data);
+}
+
function wol($type_wol, $ips) {
switch ($type_wol) {