From 1e9e80ae55b6c58d0b597d2dd09eb6a4c62b5882 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 1 Apr 2025 17:35:35 +0200 Subject: [PATCH] update --- loop/SARA_send_data_v2.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/loop/SARA_send_data_v2.py b/loop/SARA_send_data_v2.py index 1faa19b..176494f 100755 --- a/loop/SARA_send_data_v2.py +++ b/loop/SARA_send_data_v2.py @@ -747,7 +747,7 @@ try: ''' - print('➡️

SEND TO AIRCARTO SERVERS

') + print('

➡️SEND TO AIRCARTO SERVERS

', end="") # Write Data to saraR4 # 1. Open sensordata_csv.json (with correct data size) csv_string = ','.join(str(value) if value is not None else '' for value in payload_csv) @@ -1059,7 +1059,7 @@ try: ''' if send_uSpot: - print('➡️

SEND TO uSPOT SERVERS

') + print('

➡️SEND TO uSPOT SERVERS

', end="") if reset_uSpot_url: #2. Set uSpot URL (profile id = 1) @@ -1264,6 +1264,9 @@ try: http_code_str = response_SARA_4b[code_start:code_end] http_response_code = int(http_code_str) print(f"HTTP response code: {http_response_code}") + if http_response_code == 201: + print('✅✅HTTP 201 ressource created.') + except Exception as e: # If any error occurs during parsing, keep the default value print(f"Error parsing HTTP code: {e}")