This commit is contained in:
Your Name
2025-05-07 18:48:47 +02:00
parent a73eb30d32
commit 8273307cab

View File

@@ -837,7 +837,7 @@ try:
command = f'AT+COPS=1,2,{selected_networkID}\r' command = f'AT+COPS=1,2,{selected_networkID}\r'
#command = f'AT+COPS=0\r' #command = f'AT+COPS=0\r'
ser_sara.write(command.encode('utf-8')) ser_sara.write(command.encode('utf-8'))
responseReconnect = read_complete_response(ser_sara, timeout=20, end_of_response_timeout=20) responseReconnect = read_complete_response(ser_sara, timeout=20, end_of_response_timeout=20, wait_for_lines=["OK", "+CME ERROR", "ERROR"], debug=True)
print('<p class="text-danger-emphasis">') print('<p class="text-danger-emphasis">')
print(responseReconnect) print(responseReconnect)
print("</p>", end="") print("</p>", end="")