update
This commit is contained in:
@@ -431,7 +431,7 @@ try:
|
|||||||
#Here it's possible that the SARA do not repond at all
|
#Here it's possible that the SARA do not repond at all
|
||||||
#-> try to establish connection
|
#-> try to establish connection
|
||||||
#-> end loop, no need to continue
|
#-> end loop, no need to continue
|
||||||
if response2 is None or response2 == "":
|
if response2 is None or response2 == "" or not any(expected in response2 for expected in ["OK", "ERROR", "+", "AT"]):
|
||||||
print("No answer from SARA module")
|
print("No answer from SARA module")
|
||||||
print('🛑STOP LOOP🛑')
|
print('🛑STOP LOOP🛑')
|
||||||
print("<hr>")
|
print("<hr>")
|
||||||
|
|||||||
Reference in New Issue
Block a user