Fixes
This commit is contained in:
@@ -7,7 +7,9 @@ class DeviceManager{
|
||||
WHERE approved != ?", Array(2));
|
||||
}
|
||||
|
||||
|
||||
static function setHeartbeat($deviceId){
|
||||
self::edit($deviceId, ['heartbeat' => date("Y-m-d H:i:s", time())]);
|
||||
}
|
||||
|
||||
static function getAllDevicesInRoom ($roomId = "") {
|
||||
return Db::loadAll ("SELECT * FROM devices WHERE room_id = ? AND approved != ?", Array($roomId, 2));
|
||||
|
@@ -50,7 +50,7 @@ class SubDeviceManager
|
||||
}
|
||||
|
||||
//check if dubdevice exist
|
||||
|
||||
//Add History to be set in Creation
|
||||
public static function create($deviceId, $type, $unit)
|
||||
{
|
||||
$record = array(
|
||||
|
Reference in New Issue
Block a user