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