From 4a99c4470218507d621e6be786ff15b034c38676 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Sat, 12 Oct 2024 18:03:24 -0700 Subject: [PATCH] Update simulator.py --- etc/simulator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/simulator.py b/etc/simulator.py index e5403a1..58c4b7e 100644 --- a/etc/simulator.py +++ b/etc/simulator.py @@ -42,7 +42,7 @@ if __name__ == '__main__': # represents the bot's main loop nodeInt = 1 # represents the device/node number logger.info(f"System: Meshing-Around Simulator Starting for {projectName}") nodeID = get_NodeID() # assign a nodeID - projectResponse = globals()[projectName](0, 0, " ") # Call the project handler under test + projectResponse = globals()[projectName]("", nodeID, nodeInt) # Call the project handler under test while True: # represents the onReceive() loop in the bot.py projectResponse = "" responseLength = 0 @@ -51,7 +51,7 @@ if __name__ == '__main__': # represents the bot's main loop packet = input(f"CLIENT {nodeID} INPUT: " ) # Emulate the client input if packet != "": #try: - projectResponse = globals()[projectName](nodeID, deviceID=nodeInt, message=packet) # Call the project handler under test + projectResponse = globals()[projectName](message = packet, nodeID = nodeID, deviceID = nodeInt) # except Exception as e: # logger.error(f"System: Handler: {e}") # projectResponse = "Error in handler"