From c59246e320c8691206f920843228090e8a21f7a4 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 27 Feb 2025 12:17:13 +0100 Subject: [PATCH] update --- loop/SARA_send_data_v2.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/loop/SARA_send_data_v2.py b/loop/SARA_send_data_v2.py index f4c96a3..cd4c992 100755 --- a/loop/SARA_send_data_v2.py +++ b/loop/SARA_send_data_v2.py @@ -562,7 +562,7 @@ try: 73 Secure socket connect error ''' - #Essayer un reboot du SARA R4 + #Essayer un reboot du SARA R4 (ne fonctionne pas) #print("🔄SARA reboot!🔄") #command = f'AT+CFUN=15\r' #ser_sara.write(command.encode('utf-8')) @@ -571,6 +571,16 @@ try: #print(response_SARA_9r) #print("

") + #reset l'url + print('❓Try Resetting the HTTP Profile❓') + command = f'AT+UHTTP={aircarto_profile_id},1,"data.nebuleair.fr"\r' + ser_sara.write(command.encode('utf-8')) + responseResetHTTP2_profile = read_complete_response(ser_sara, timeout=5, end_of_response_timeout=5, wait_for_lines=["OK", "+CME ERROR"], debug=True) + print('

') + print(responseResetHTTP2_profile) + print("

") + + # 2.2 code 1 (HHTP succeded) else: # Si la commande HTTP a réussi