diff --git a/loop/SARA_send_data_v2.py b/loop/SARA_send_data_v2.py index 0dd2c48..48cadf3 100755 --- a/loop/SARA_send_data_v2.py +++ b/loop/SARA_send_data_v2.py @@ -1136,6 +1136,20 @@ try: #parfois ici on peut avoir une erreur ERROR if "+CME ERROR" in response_SARA_2 or "ERROR" in response_SARA_2: print('⚠️ATTENTION: Error while sending data⚠️') + print('🛑STOP LOOP🛑') + print("
") + + #Send notification (WIFI) + send_error_notification(device_id, "UDP sending issue") + #Hardware Reboot + hardware_reboot_success = modem_hardware_reboot() + if hardware_reboot_success: + print("✅Modem successfully rebooted and reinitialized") + else: + print("⛔There were issues with the modem reboot/reinitialize process") + + #end loop + sys.exit() #Read reply from server (USORD)