This commit is contained in:
PaulVua
2025-01-14 17:42:59 +01:00
parent b9c7caf624
commit 0894961abf
2 changed files with 25 additions and 32 deletions

View File

@@ -119,9 +119,19 @@ try:
print(response_SARA_5)
time.sleep(1)
#step 4: set url
print("****")
print("SET PORT")
command = f'AT+UHTTP=1,5,443\r'
ser_sara.write((command + '\r').encode('utf-8'))
response_SARA_55 = read_complete_response(ser_sara)
print(response_SARA_55)
time.sleep(1)
#step 4: set url to SSL
print("****")
print("SET URL")
print("SET SSL")
command = f'AT+UHTTP=1,6,1,2\r'
ser_sara.write((command + '\r').encode('utf-8'))
response_SARA_5 = read_complete_response(ser_sara)