update
This commit is contained in:
@@ -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:")
|
||||||
|
|||||||
Reference in New Issue
Block a user