Skip to content

Commit

Permalink
v2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Paolo-Beci committed May 7, 2024
1 parent a6a8810 commit 39981fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 39981fa

Please sign in to comment.