API command interface
This commit is contained in:
parent
942c7a4bca
commit
0d0ba4ae50
4
api.php
4
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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user