diff --git a/loop/SARA_send_data_v2.py b/loop/SARA_send_data_v2.py index 93ad5f9..b7e9ba0 100755 --- a/loop/SARA_send_data_v2.py +++ b/loop/SARA_send_data_v2.py @@ -774,7 +774,7 @@ try: # Getting the LTE Signal print("➡️Getting LTE signal") ser_sara.write(b'AT+CSQ\r') - response2 = read_complete_response(ser_sara, wait_for_lines=["OK", "ERROR", "+CME ERROR"]) + response2 = read_complete_response(ser_sara, wait_for_lines=["OK", "ERROR", "+CME ERROR","Socket:bind"]) print('
') print(response2) print("
", end="") @@ -797,12 +797,25 @@ try: #end loop sys.exit() - #2. si on a une erreur + #2. si on a une reponse du SARA mais c'est une erreur elif "+CME ERROR" in response2: print(f"SARA module returned error: {response2}") print("The CSQ command is not supported by this module or in its current state") print("⚠️ATTENTION: SARA is connected over serial but CSQ command not supported") print('🛑STOP LOOP🛑') + print("