improve pdp reconnect
This commit is contained in:
@@ -523,10 +523,10 @@ def reset_PSD_CSD_connection():
|
||||
response_check = read_complete_response(ser_sara, wait_for_lines=["OK"])
|
||||
print(response_check, end="")
|
||||
# 2. Parser la réponse
|
||||
if '+CGACT: 1,1' in response:
|
||||
if '+CGACT: 1,1' in response_check:
|
||||
print("✅ Contexte PDP déjà actif")
|
||||
return True
|
||||
elif '+CGACT: 1,0' in response:
|
||||
elif '+CGACT: 1,0' in response_check:
|
||||
print("➡️ ⚠️ Contexte PDP inactif")
|
||||
else:
|
||||
print("⚠️ État PDP inconnu, reset nécessaire")
|
||||
|
||||
Reference in New Issue
Block a user