-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
26 lines (20 loc) · 771 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import time
from EdgeServer import Edge_Server
from LightDevice import Light_Device
from ACDevice import AC_Device
WAIT_TIME = 0.25
print("\nSmart Home Simulation started.")
# Creating the edge-server for the communication with the user
edge_server_1 = Edge_Server('edge_server_1')
time.sleep(WAIT_TIME)
# Creating the light_device
print("Intitate the device creation and registration process." )
print("\nCreating the Light devices for their respective rooms.")
light_device_1 = Light_Device("light_1", "Kitchen")
time.sleep(WAIT_TIME)
# Creating the ac_device
print("\nCreating the AC devices for their respective rooms. ")
ac_device_1 = AC_Device("ac_1", "BR1")
time.sleep(WAIT_TIME)
print("\nSmart Home Simulation stopped.")
edge_server_1.terminate()