Network Setting
This commit is contained in:
parent
b2e4da37bf
commit
563999e92d
4
api.php
4
api.php
@ -190,6 +190,8 @@ if ($values != null || $values != "") {
|
|||||||
'device' => [
|
'device' => [
|
||||||
'hostname' => $hostname,
|
'hostname' => $hostname,
|
||||||
'ipAddress' => $device['ip_address'],
|
'ipAddress' => $device['ip_address'],
|
||||||
|
'subnet' => $device['subnet'],
|
||||||
|
'gateway' => $device['gateway'],
|
||||||
],
|
],
|
||||||
'state' => 'succes',
|
'state' => 'succes',
|
||||||
];
|
];
|
||||||
@ -225,6 +227,8 @@ if ($values != null || $values != "") {
|
|||||||
'hostname' => $device['name'],
|
'hostname' => $device['name'],
|
||||||
'sleepTime' => $device['sleep_time'],
|
'sleepTime' => $device['sleep_time'],
|
||||||
'ipAddress' => $device['ip_address'],
|
'ipAddress' => $device['ip_address'],
|
||||||
|
'subnet' => $device['subnet'],
|
||||||
|
'gateway' => $device['gateway'],
|
||||||
],
|
],
|
||||||
'state' => 'succes',
|
'state' => 'succes',
|
||||||
'value' => $subDeviceLastReordValue
|
'value' => $subDeviceLastReordValue
|
||||||
|
@ -3,8 +3,8 @@ class RoomManager{
|
|||||||
public static $rooms;
|
public static $rooms;
|
||||||
|
|
||||||
function getDefaultRoomId() {
|
function getDefaultRoomId() {
|
||||||
$defaultRoom = Db::loadOne("SELECT id FROM rooms WHERE default = 1");
|
$defaultRoom = Db::loadOne("SELECT room_id FROM rooms WHERE 'default' = 1");
|
||||||
return $defaultRoom['id'];
|
return $defaultRoom['room_id'];
|
||||||
}
|
}
|
||||||
|
|
||||||
function getAllRooms () {
|
function getAllRooms () {
|
||||||
|
@ -158,6 +158,8 @@ class Home extends Template
|
|||||||
'token' => $deviceData['token'],
|
'token' => $deviceData['token'],
|
||||||
'type' => $deviceData['type'],
|
'type' => $deviceData['type'],
|
||||||
'ip' => $deviceData['ip_address'],
|
'ip' => $deviceData['ip_address'],
|
||||||
|
'subnet' => $deviceData['subnet'],
|
||||||
|
'gateway' => $deviceData['gateway'],
|
||||||
'sleepTime' => $deviceData['sleep_time'],
|
'sleepTime' => $deviceData['sleep_time'],
|
||||||
'approved' => $deviceData['approved'],
|
'approved' => $deviceData['approved'],
|
||||||
'permission' => $permissionArray,
|
'permission' => $permissionArray,
|
||||||
|
Loading…
Reference in New Issue
Block a user