From 660af80ab0b6ea9840bd09a37d8f33918f2bfac0 Mon Sep 17 00:00:00 2001 From: PaulVua Date: Thu, 23 Jan 2025 16:56:36 +0100 Subject: [PATCH] update --- loop/1_NPM/send_data.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/loop/1_NPM/send_data.py b/loop/1_NPM/send_data.py index e16e02e..093d9c8 100755 --- a/loop/1_NPM/send_data.py +++ b/loop/1_NPM/send_data.py @@ -501,11 +501,13 @@ try: GPIO.output(23, GPIO.LOW) # Turn off the LED # 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' ser_sara.write(command.encode('utf-8')) response_SARA_9 = read_complete_response(ser_sara, wait_for_line="OK") + print('

') print(response_SARA_9) + print("

") ''' +UHTTPER: profile_id,error_class,error_code @@ -515,8 +517,9 @@ try: 3 HTTP Protocol error class 10 Wrong HTTP API USAGE - error_code + error_code (for error_class 3) 0 No error + 11 Server connection error 73 Secure socket connect error '''