fix variable name

This commit is contained in:
Evgeny Zinoviev 2021-02-15 19:56:18 +03:00
parent 8e848d50f4
commit b80d4936ce

View File

@ -265,9 +265,9 @@ def tcp_message(flow: tcp.TCPFlow):
ctx.log.info(log_message)
# This way we can save topics
# if mqtt_message.packet_type == mqtt_message.PUBLISH:
# if mqtt_packet.packet_type == mqtt_packet.PUBLISH:
# with open("topics.txt", "a") as f:
# f.write(f"{mqtt_message.topic_name}\n")
# elif mqtt_message.packet_type == mqtt_message.SUBSCRIBE:
# f.write(f"{mqtt_packet.topic_name}\n")
# elif mqtt_packet.packet_type == mqtt_packet.SUBSCRIBE:
# with open("topics.txt", "a") as f:
# f.write(f"{mqtt_message.topic_filters}\n")
# f.write(f"{mqtt_packet.topic_filters}\n")