From a6124020ea8afef71884e9ac070e3d6b462c3300 Mon Sep 17 00:00:00 2001
From: NizarBouchedakh <mohamednizar.bouchedakh@master.hes-so.ch>
Date: Tue, 16 Feb 2016 17:44:42 +0100
Subject: [PATCH] start : new version

---
 backend.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/backend.py b/backend.py
index f57cd76..98c8c0c 100644
--- a/backend.py
+++ b/backend.py
@@ -50,7 +50,9 @@ class Backend():
 	###### backend object attributes
 #        self.devices = OrderedDict()  ### will contain the list of nodes in the network
 #        self.sensors = OrderedDict()  ### will contain the list of sensors (only) in the network
-	self.timestamps = {}	      ### will contain the time of the last values' update for each sensor
+        self.node_added = False
+        self.node_removed = False	    
+        self.timestamps = {}	      ### will contain the time of the last values' update for each sensor
         self.queryStages = {	      ### the diffrent stages that a node object gets through before being ready 
                 "None"                  :  1, # Query process hasn't started for this node
                 "ProtocolInfo"          :  2, # Retrieve protocol information
@@ -297,7 +299,7 @@ class Backend():
 
 
         if started:
-            print "Already started      !"
+            print "Already started "
             return 
         started = True
         self.network.start()
-- 
GitLab