update
This commit is contained in:
@@ -747,7 +747,7 @@ try:
|
|||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
print('➡️<p class="fw-bold">SEND TO AIRCARTO SERVERS</p>')
|
print('<p class="fw-bold">➡️SEND TO AIRCARTO SERVERS</p>', end="")
|
||||||
# Write Data to saraR4
|
# Write Data to saraR4
|
||||||
# 1. Open sensordata_csv.json (with correct data size)
|
# 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)
|
csv_string = ','.join(str(value) if value is not None else '' for value in payload_csv)
|
||||||
@@ -1059,7 +1059,7 @@ try:
|
|||||||
'''
|
'''
|
||||||
|
|
||||||
if send_uSpot:
|
if send_uSpot:
|
||||||
print('➡️<p class="fw-bold">SEND TO uSPOT SERVERS</p>')
|
print('<p class="fw-bold">➡️SEND TO uSPOT SERVERS</p>', end="")
|
||||||
|
|
||||||
if reset_uSpot_url:
|
if reset_uSpot_url:
|
||||||
#2. Set uSpot URL (profile id = 1)
|
#2. Set uSpot URL (profile id = 1)
|
||||||
@@ -1264,6 +1264,9 @@ try:
|
|||||||
http_code_str = response_SARA_4b[code_start:code_end]
|
http_code_str = response_SARA_4b[code_start:code_end]
|
||||||
http_response_code = int(http_code_str)
|
http_response_code = int(http_code_str)
|
||||||
print(f"HTTP response code: {http_response_code}")
|
print(f"HTTP response code: {http_response_code}")
|
||||||
|
if http_response_code == 201:
|
||||||
|
print('<span style="font-weight: bold;">✅✅HTTP 201 ressource created.</span>')
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
# If any error occurs during parsing, keep the default value
|
# If any error occurs during parsing, keep the default value
|
||||||
print(f"Error parsing HTTP code: {e}")
|
print(f"Error parsing HTTP code: {e}")
|
||||||
|
|||||||
Reference in New Issue
Block a user