From b5e34809d7663b6b6662cd27a1e9fc1e9544dd8a Mon Sep 17 00:00:00 2001 From: rsgrinko Date: Mon, 6 Dec 2021 10:05:51 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=BF=D0=B0=D1=80=D0=B0=D0=BC=D0=B5=D1=82=D1=80=20?= =?UTF-8?q?=D0=98=D0=BD=D1=82=D0=B5=D1=80=D0=B2=D0=B0=D0=BB=20=D0=BE=D0=B1?= =?UTF-8?q?=D0=BC=D0=B5=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/getConfig.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/controller/getConfig.php b/controller/getConfig.php index ad80421..b8d3ca9 100644 --- a/controller/getConfig.php +++ b/controller/getConfig.php @@ -13,13 +13,14 @@ } $mac = prepareString($_REQUEST['mac']); $deviceId = CIoT::getDeviceId($mac); + header('Content-type: application/json; charset=utf-8'); $boardConfig = CIoT::getBoardConfig($deviceId); $arr = array ( - 'dallas_resolution' => $boardConfig['ds_resolution'], // 9..12 - 'deviceId' => $deviceId, - 'sendingInterval' => '2000', - 'mac' => $mac, + 'dallas_resolution' => $boardConfig['ds_resolution'], // разрядность датчика 9..12 + 'deviceId' => $deviceId, // идентификатор устройства + 'sendingInterval' => $boardConfig['sending_interval'], // интервал обмена + 'mac' => $mac, // MAC адрес устройства 'date' => date("d.m.y H:i:s"), 'support' => 'rsgrinko@gmail.com' );