def __init__(self): global _node_db _node_db = RF_Node_DB() global sensor_node_db sensor_node_db = _node_db.sensor_node_db self.rwq_object = RF_Display_Queue() self.speech_object = RF_Speech_Queue() self.sensorlist_object = RF_SensorList_Queue() self.MAC = 'mac' self.MESG_TYPE = [ 'SENSOR_JOINED', 'SENSOR_LOCATION', 'ALERT', 'SENSOR_DISCONNECTED' ] self.ALERT_TYPE = ['Motion', 'Vibration']
def __init__(self, v): threading.Thread.__init__(self) global rwq_object rwq_object = RF_Display_Queue() self._var = v