def main():

    temp_sensor_object = TempSensorAdaptor()  # Thread 1 - Temperature Sensing
    alarm_trigger = SensorDataManager(
    )  # Thread 2 - Notification generator & actuation function class
    alarm_trigger.start()

    while True:
        pass
Ejemplo n.º 2
0
 def setUp(self):
     adaptor_object = TempSensorAdaptor()  # Thread object 1
     self.temp_sensor_object = adaptor_object.getSensorobj()
     manager_object = SensorDataManager()  # Thread object 2
     manager_object.start()  # Starting thread
     self.message_object = smtpconnect()  # SMTP class object