update
This commit is contained in:
@@ -532,6 +532,7 @@ def modem_complete_reboot_and_reinitialize(modem_version, aircarto_profile_id):
|
||||
|
||||
|
||||
http_reset_success = response_SARA_5 is not None and "OK" in response_SARA_5
|
||||
|
||||
if not http_reset_success:
|
||||
print("⚠️ AirCarto HTTP profile reset failed")
|
||||
# Continue anyway, don't return False here
|
||||
@@ -639,7 +640,8 @@ def modem_complete_reboot_and_reinitialize(modem_version, aircarto_profile_id):
|
||||
time.sleep(1)
|
||||
|
||||
# Return overall success
|
||||
return http_reset_success and pdp_reset_success
|
||||
#return http_reset_success and pdp_reset_success
|
||||
return http_reset_success
|
||||
|
||||
try:
|
||||
'''
|
||||
@@ -1231,11 +1233,17 @@ try:
|
||||
send_error_notification(device_id, "SARA CME ERROR")
|
||||
|
||||
#Software Reboot
|
||||
software_reboot_success = modem_complete_reboot_and_reinitialize(modem_version, aircarto_profile_id)
|
||||
if software_reboot_success:
|
||||
print("Modem successfully rebooted and reinitialized")
|
||||
#software_reboot_success = modem_complete_reboot_and_reinitialize(modem_version, aircarto_profile_id)
|
||||
#if software_reboot_success:
|
||||
# print("Modem successfully rebooted and reinitialized")
|
||||
#else:
|
||||
# print("There were issues with the modem reboot/reinitialize process")
|
||||
#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")
|
||||
print("⛔There were issues with the modem reboot/reinitialize process")
|
||||
|
||||
|
||||
#5. empty json
|
||||
|
||||
Reference in New Issue
Block a user