|
@@ -251,11 +251,11 @@ class ArtNetNodes():
|
|
|
node["REFRESHSTAMP"] = time.time()
|
|
|
update_node = 1
|
|
|
update_node = 0
|
|
|
- print("x-node:",update_node,add_node)
|
|
|
+
|
|
|
if not update_node:
|
|
|
node = add_node
|
|
|
if node:
|
|
|
- print("add_node",node)
|
|
|
+
|
|
|
node["BOOT"] = BOOT
|
|
|
info = node["MAC"],node["IP"].ljust(16," "),[node["SwIn"],node["SwOut"],node["PortTypes"]]
|
|
|
|
|
@@ -266,7 +266,11 @@ class ArtNetNodes():
|
|
|
self.__tick += 1
|
|
|
self.__nodes += [node]
|
|
|
|
|
|
-
|
|
|
+ for node in self.__nodes:
|
|
|
+ print("Node: ")
|
|
|
+ for k,v in node.items():
|
|
|
+ print(" -",[k,v])
|
|
|
+ print("")
|
|
|
finally:
|
|
|
|
|
|
self.__lock.release()
|
|
@@ -710,6 +714,7 @@ def node_cmd_recive():
|
|
|
|
|
|
|
|
|
|
|
|
+node_list2 = []
|
|
|
if __name__ == "__main__":
|
|
|
|
|
|
thread.start_new_thread(node_cmd_recive, () )
|
|
@@ -724,7 +729,8 @@ if __name__ == "__main__":
|
|
|
|
|
|
nodes = rx.get()
|
|
|
|
|
|
-
|
|
|
+ node_list2.extend(nodes)
|
|
|
+ print(node_list2)
|
|
|
if z % 10 == 0:
|
|
|
print()
|
|
|
pass
|