mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
Static ip generator :)
This commit is contained in:
1 parent
9e6968bf6c
commit
7337e3c7d9
5 files changed
+28
No files matched your search
@@ -23,9 +23,11 @@ class DeviceManager{
|
||||
}
|
||||
|
||||
public function create ($name, $token) {
|
||||
$defaultRoom = RoomManager::getDefaultRoomId();
|
||||
$device = array (
|
||||
'name' => $name,
|
||||
'token' => $token,
|
||||
'room_id' => $defaultRoom,
|
||||
);
|
||||
try {
|
||||
Db::add ('devices', $device);
|
||||
|
||||
Reference in new issue
Block a user