mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
Execution Check
This commit is contained in:
1 parent
ae0d5b86ad
commit
aef5b5116d
2 files changed
+15
No files matched your search
@@ -14,4 +14,17 @@ class WidgetApi extends ApiController{
|
||||
|
||||
$this->response(['value' => $response]);
|
||||
}
|
||||
|
||||
public function check($subDeviceId){
|
||||
//$this->requireAuth();
|
||||
$response = null;
|
||||
$lastRecord = RecordManager::getLastRecord($subDeviceId);
|
||||
|
||||
$response = [
|
||||
'executet' => $lastRecord['execuded'],
|
||||
'value' => $lastRecord['value'],
|
||||
];
|
||||
|
||||
$this->response($response);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user