From 0d0ba4ae505ee6b2d225419b6497728714c54348 Mon Sep 17 00:00:00 2001 From: JonatanRek Date: Fri, 13 Mar 2020 16:14:22 +0100 Subject: [PATCH] API command interface --- api.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api.php b/api.php index fa04edc..c57ef80 100644 --- a/api.php +++ b/api.php @@ -226,6 +226,7 @@ if ($values != null || $values != "") { 'gateway' => $device['gateway'], ], 'state' => 'succes', + 'command' => "null", ]; $subDevicesTypeList = SubDeviceManager::getSubDeviceSTypeForMater($deviceId); @@ -261,7 +262,8 @@ if ($values != null || $values != "") { 'gateway' => $device['gateway'], ], 'state' => 'succes', - 'value' => $subDeviceLastReordValue + 'value' => $subDeviceLastReordValue, + 'command' => "null", )); header($_SERVER["SERVER_PROTOCOL"]." 200 OK"); }