From 98115ab22baab2863ab10ba9d2440f1249a37f44 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 2 Jul 2025 08:01:41 +0100 Subject: [PATCH] update --- loop/SARA_send_data_v2.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/loop/SARA_send_data_v2.py b/loop/SARA_send_data_v2.py index 5f90228..369b201 100755 --- a/loop/SARA_send_data_v2.py +++ b/loop/SARA_send_data_v2.py @@ -335,7 +335,7 @@ def send_error_notification(device_id, error_type, additional_info=None): try: response = requests.post(alert_url, timeout=3) if response.status_code == 200: - print(f"✅ Alert notification sent successfully") + #print(f"✅ Alert notification sent successfully") return True else: print(f"⚠️ Alert notification failed: Status code {response.status_code}") @@ -1005,7 +1005,7 @@ try: # INVALID SERVER HOSTNAME elif error_code == 4: print('

Error 4: Invalid server Hostname

') - send_error_notification(device_id, "UHTTPER (error n°4) -> Invalid Server Hostname") + send_error_notification(device_id, "UHTTPER (error n°4) -> AirCarto Invalid Server Hostname") server_hostname_resets = reset_server_hostname(aircarto_profile_id) if server_hostname_resets: print("✅server hostname reset successfully") @@ -1308,7 +1308,7 @@ try: send_error_notification(device_id, "UHTTPER (4) uSpot Invalid server Hostname") server_hostname_resets = reset_server_hostname_https(uSpot_profile_id) if server_hostname_resets: - print("✅server hostname reset successfully") + print("✅ uSpot - server hostname reset successfully") else: print("⛔There were issues with the modem server hostname reinitialize process") # SERVER CONNECTION ERROR @@ -1321,9 +1321,13 @@ try: elif error_code == 44: print('

Error 44: Connection lost

') elif error_code == 73: - print('

Error 73: Secure socket connect error

', end="") + print('

Error 73: uSpot - Secure socket connect error

', end="") send_error_notification(device_id, "uSpot - Secure socket connect error") - #Software Reboot ?? + server_hostname_resets = reset_server_hostname_https(uSpot_profile_id) + if server_hostname_resets: + print("✅ uSpot - server hostname reset successfully") + else: + print("⛔There were issues with the modem server hostname reinitialize process") else: print(f'

Unknown error code: {error_code}

',end="")