This commit is contained in:
Your Name
2025-03-11 15:40:22 +01:00
parent c42b16ddb6
commit 5e7375cd4e

View File

@@ -427,6 +427,16 @@ try:
print("-> Getting LTE signal <-") print("-> Getting LTE signal <-")
ser_sara.write(b'AT+CSQ\r') ser_sara.write(b'AT+CSQ\r')
response2 = read_complete_response(ser_sara, wait_for_lines=["OK"]) response2 = read_complete_response(ser_sara, wait_for_lines=["OK"])
#Here it's possible that the SARA do not repond at all
#-> try to establish connection
#-> end loop, no need to continue
if response2 is None or response2 == "":
print("No answer from SARA module")
print('🛑STOP LOOP🛑')
print("<hr>")
sys.exit()
print('<p class="text-danger-emphasis">') print('<p class="text-danger-emphasis">')
print(response2) print(response2)
print("</p>", end="") print("</p>", end="")