Update server.py

Fix pubsub errors
This commit is contained in:
TC² 2024-07-02 18:47:59 -04:00
parent 5935c4d270
commit be9aa375cf

View file

@ -57,7 +57,7 @@ def main():
initialize_database() initialize_database()
def receive_packet(packet): def receive_packet(packet, interface):
on_receive(packet, interface) on_receive(packet, interface)
pub.subscribe(receive_packet, system_config['mqtt_topic']) pub.subscribe(receive_packet, system_config['mqtt_topic'])