mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
API command interface
This commit is contained in:
1 parent
942c7a4bca
commit
0d0ba4ae50
1 file changed
+3
-1
@@ -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");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user