small fix
This commit is contained in:
1 parent
9e63259bc4
commit
63985471ca
2 files changed
+2
-9
No files matched your search
@@ -1,15 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once __DIR__ . '/inc/bootstrap.php';
|
require_once __DIR__ . '/inc/bootstrap.php';
|
||||||
require_once __DIR__ . '/inc/header.php';
|
require_once __DIR__ . '/inc/header.php';
|
||||||
|
|
||||||
/*$userDevices = getUserDevices($USER['id']);
|
|
||||||
if($userDevices) {
|
|
||||||
$deviceId = $userDevices[0]['id']; // мониторим только первое устройство пользователя при наличии
|
|
||||||
} else {
|
|
||||||
$deviceId = 9; // иначе показываем демо плату
|
|
||||||
}*/
|
|
||||||
$arSensors = CIoT::getDallasArrData($USER['deviceId']);
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="row maxheight test-draggable-items control_block">
|
<div class="row maxheight test-draggable-items control_block">
|
||||||
|
|||||||
@@ -235,6 +235,8 @@ class CIoT {
|
|||||||
/**
|
/**
|
||||||
* Получаем массив с данными об устройствах
|
* Получаем массив с данными об устройствах
|
||||||
*
|
*
|
||||||
|
* @param string $limit
|
||||||
|
* @param string $sort
|
||||||
* @return array|bool
|
* @return array|bool
|
||||||
*/
|
*/
|
||||||
public static function getDevices($limit = 10, $sort = 'ASC') {
|
public static function getDevices($limit = 10, $sort = 'ASC') {
|
||||||
|
|||||||
Reference in new issue
Block a user