This commit is contained in:
Your Name
2025-02-27 12:17:13 +01:00
parent 1a15d70aa7
commit c59246e320

View File

@@ -562,7 +562,7 @@ try:
73 Secure socket connect error 73 Secure socket connect error
''' '''
#Essayer un reboot du SARA R4 #Essayer un reboot du SARA R4 (ne fonctionne pas)
#print("🔄SARA reboot!🔄") #print("🔄SARA reboot!🔄")
#command = f'AT+CFUN=15\r' #command = f'AT+CFUN=15\r'
#ser_sara.write(command.encode('utf-8')) #ser_sara.write(command.encode('utf-8'))
@@ -571,6 +571,16 @@ try:
#print(response_SARA_9r) #print(response_SARA_9r)
#print("</p>") #print("</p>")
#reset l'url
print('<span style="color: orange;font-weight: bold;">❓Try Resetting the HTTP Profile❓</span>')
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('<p class="text-danger-emphasis">')
print(responseResetHTTP2_profile)
print("</p>")
# 2.2 code 1 (HHTP succeded) # 2.2 code 1 (HHTP succeded)
else: else:
# Si la commande HTTP a réussi # Si la commande HTTP a réussi