diff --git a/backend/functions.py b/backend/functions.py index a98925e..cc0048f 100644 --- a/backend/functions.py +++ b/backend/functions.py @@ -85,7 +85,7 @@ def read_data_handler(data_buffer): # Remove the extracted line from the buffer data_buffer = data_buffer[line_index + len(NEWLINE):] - #print(f"Received line: {line}") #DEBUG + print(f"Received line: {line}") #DEBUG # Process the line (convert to json and send it to the UDP server) csv_to_json(udp_socket, line, UDP_PORT, VALUES, SEPARATOR) @@ -125,7 +125,7 @@ def csv_to_json(udp_socket, line_csv, UDP_PORT, VALUES, SEPARATOR): # Send JSON data to the UDP server def send_json_to_udp(udp_socket, json_data, UDP_PORT): try: - #print(f"Sending JSON data: {json_data}") #DEBUG + print(f"Sending JSON data: {json_data}") #DEBUG # Serialize the JSON data to a string json_string = json.dumps(json_data) # Encode the JSON string to bytes