This commit is contained in:
Your Name
2025-01-24 14:35:05 +01:00
parent 833ed458a7
commit 4123f977b2

View File

@@ -442,15 +442,7 @@ try:
print(response_SARA_3) print(response_SARA_3)
print("</p>") print("</p>")
# Wait for the +UUHTTPCR response # si on recoit la réponse UHTTPCR
#print("Waiting for +UUHTTPCR response...")
#response_received = False
#while not response_received:
# response_SARA_3 = read_complete_response(ser_sara, timeout=5)
# print(response_SARA_3.strip())
# if "+UUHTTPCR" in response_SARA_3:
# response_received = True
if "+UUHTTPCR" in response_SARA_3: if "+UUHTTPCR" in response_SARA_3:
print("✅ Received +UUHTTPCR response.") print("✅ Received +UUHTTPCR response.")
@@ -567,6 +559,11 @@ try:
print('</p>') print('</p>')
else: else:
print('<span style="color: red;font-weight: bold;">No UUHTTPCR response</span>') print('<span style="color: red;font-weight: bold;">No UUHTTPCR response</span>')
print("Blink red LED")
# Run LED blinking in a separate thread
led_thread = Thread(target=blink_led, args=(24, 5, 0.5))
led_thread.start()
#5. empty json #5. empty json
print("Empty SARA memory:") print("Empty SARA memory:")