update
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user