Commit bd793570 authored by Federico Sismondi's avatar Federico Sismondi

Refact code for WoT message factory for GUI adapter

parent d8b4d2fc
......@@ -16,15 +16,11 @@ topology:
- thing3
- thing4
- thing5
- thing6
- thing7
- thing8
- thing9
- thing10
- wot_arenahub
- wot_thingweb
addressing:
- node: thing1
ipv6_prefix : bbbb
ipv6_host: 1
......@@ -40,21 +36,7 @@ addressing:
- node: thing5
ipv6_prefix : bbbb
ipv6_host: 5
- node: thing6
ipv6_prefix : bbbb
ipv6_host: 6
- node: thing7
ipv6_prefix : bbbb
ipv6_host: 7
- node: thing8
ipv6_prefix : bbbb
ipv6_host: 8
- node: thing9
ipv6_prefix : bbbb
ipv6_host: 9
- node: thing10
ipv6_prefix : bbbb
ipv6_host: 10
- node: wot_arenahub
ipv6_prefix : bbbb
ipv6_host: 100
......
......@@ -728,12 +728,11 @@ def main():
loop_count = 0
logger.debug("reset loop count")
# elif loop_count % 500 == 0: # run less frequently
# new_users = get_new_user_on_session(amqp_message_publisher)
# logger.info("Checking if new users in the session..")
# if new_users:
# logger.info("New users detected in the session!!")
# message_translator.callback_on_new_users_in_the_session(amqp_message_publisher, new_users)
elif loop_count % 500 == 0: # run less frequently
new_users = get_new_user_on_session(amqp_message_publisher)
if new_users:
logger.info("New users detected in the session. Calling handler")
message_translator.callback_on_new_users_in_the_session(amqp_message_publisher, new_users)
loop_count += 1
time.sleep(0.01)
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment