Skip to content

Commit

Permalink
dimValue key has now topic address, topic name and topic port
Browse files Browse the repository at this point in the history
  • Loading branch information
niemijoe committed Aug 22, 2022
1 parent aca2a30 commit b52c7d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mqtt_data_collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ def main():
if time.time() > time_end:
topic_data_map = {}
for topic in topic_list:
topic_data_map[topic.topic_name] = topic.msg_count
topic_data_map_key = f"{topic.topic_address}:{topic.topic_name}:{topic.topic_port}"
topic_data_map[topic_data_map_key] = topic.msg_count
topic.msg_count = 0

if IS_DEBUG:
Expand Down

0 comments on commit b52c7d3

Please sign in to comment.