This commit is contained in:
PaulVua
2025-01-23 16:56:36 +01:00
parent 8596690f32
commit 660af80ab0

View File

@@ -501,11 +501,13 @@ try:
GPIO.output(23, GPIO.LOW) # Turn off the LED GPIO.output(23, GPIO.LOW) # Turn off the LED
# Get error code # Get error code
print("Getting error code") print("Getting error code (11->Server connection error, 73->Secure socket connect error)")
command = f'AT+UHTTPER={aircarto_profile_id}\r' command = f'AT+UHTTPER={aircarto_profile_id}\r'
ser_sara.write(command.encode('utf-8')) ser_sara.write(command.encode('utf-8'))
response_SARA_9 = read_complete_response(ser_sara, wait_for_line="OK") response_SARA_9 = read_complete_response(ser_sara, wait_for_line="OK")
print('<p class="text-danger-emphasis">')
print(response_SARA_9) print(response_SARA_9)
print("</p>")
''' '''
+UHTTPER: profile_id,error_class,error_code +UHTTPER: profile_id,error_class,error_code
@@ -515,8 +517,9 @@ try:
3 HTTP Protocol error class 3 HTTP Protocol error class
10 Wrong HTTP API USAGE 10 Wrong HTTP API USAGE
error_code error_code (for error_class 3)
0 No error 0 No error
11 Server connection error
73 Secure socket connect error 73 Secure socket connect error
''' '''