API command interface

This commit is contained in:
JonatanRek 2020-03-13 16:14:22 +01:00
parent 942c7a4bca
commit 0d0ba4ae50
1 changed files with 3 additions and 1 deletions

View File

@ -226,6 +226,7 @@ if ($values != null || $values != "") {
'gateway' => $device['gateway'], 'gateway' => $device['gateway'],
], ],
'state' => 'succes', 'state' => 'succes',
'command' => "null",
]; ];
$subDevicesTypeList = SubDeviceManager::getSubDeviceSTypeForMater($deviceId); $subDevicesTypeList = SubDeviceManager::getSubDeviceSTypeForMater($deviceId);
@ -261,7 +262,8 @@ if ($values != null || $values != "") {
'gateway' => $device['gateway'], 'gateway' => $device['gateway'],
], ],
'state' => 'succes', 'state' => 'succes',
'value' => $subDeviceLastReordValue 'value' => $subDeviceLastReordValue,
'command' => "null",
)); ));
header($_SERVER["SERVER_PROTOCOL"]." 200 OK"); header($_SERVER["SERVER_PROTOCOL"]." 200 OK");
} }