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
|
||||
# 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('➡️<p class="fw-bold">SEND TO uSPOT SERVERS</p>')
|
||||
print('<p class="fw-bold">➡️SEND TO uSPOT SERVERS</p>', 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('<span style="font-weight: bold;">✅✅HTTP 201 ressource created.</span>')
|
||||
|
||||
except Exception as e:
|
||||
# If any error occurs during parsing, keep the default value
|
||||
print(f"Error parsing HTTP code: {e}")
|
||||
|
||||
Reference in New Issue
Block a user