update
This commit is contained in:
@@ -442,15 +442,7 @@ try:
|
||||
print(response_SARA_3)
|
||||
print("</p>")
|
||||
|
||||
# Wait for the +UUHTTPCR response
|
||||
#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
|
||||
|
||||
# si on recoit la réponse UHTTPCR
|
||||
if "+UUHTTPCR" in response_SARA_3:
|
||||
print("✅ Received +UUHTTPCR response.")
|
||||
|
||||
@@ -567,6 +559,11 @@ try:
|
||||
print('</p>')
|
||||
else:
|
||||
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
|
||||
print("Empty SARA memory:")
|
||||
|
||||
Reference in New Issue
Block a user