update
This commit is contained in:
@@ -1245,9 +1245,6 @@ try:
|
|||||||
print("Operation not allowed. This may require a different configuration.")
|
print("Operation not allowed. This may require a different configuration.")
|
||||||
# Actions spécifiques pour ce type d'erreur
|
# Actions spécifiques pour ce type d'erreur
|
||||||
|
|
||||||
# Clignotement LED rouge en cas d'erreur
|
|
||||||
led_thread = Thread(target=blink_led, args=(24, 5, 0.5))
|
|
||||||
led_thread.start()
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# 2.Si la réponse contient une réponse HTTP valide
|
# 2.Si la réponse contient une réponse HTTP valide
|
||||||
@@ -1262,10 +1259,6 @@ try:
|
|||||||
print("*****")
|
print("*****")
|
||||||
print('<span style="color: red;font-weight: bold;">⛔ATTENTION: HTTP operation failed</span>')
|
print('<span style="color: red;font-weight: bold;">⛔ATTENTION: HTTP operation failed</span>')
|
||||||
print("*****")
|
print("*****")
|
||||||
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()
|
|
||||||
|
|
||||||
# Get error code
|
# Get error code
|
||||||
print("Getting error code", end="")
|
print("Getting error code", end="")
|
||||||
@@ -1315,10 +1308,7 @@ try:
|
|||||||
else:
|
else:
|
||||||
# Si la commande HTTP a réussi
|
# Si la commande HTTP a réussi
|
||||||
print('<span style="font-weight: bold;">✅✅HTTP operation successful.</span>')
|
print('<span style="font-weight: bold;">✅✅HTTP operation successful.</span>')
|
||||||
print("Blink blue LED")
|
|
||||||
led_thread = Thread(target=blink_led, args=(23, 5, 0.5))
|
|
||||||
led_thread.start()
|
|
||||||
|
|
||||||
#4. Read reply from server
|
#4. Read reply from server
|
||||||
print("Reply from server:")
|
print("Reply from server:")
|
||||||
command = f'AT+URDFILE="uSpot_server_response.txt"\r'
|
command = f'AT+URDFILE="uSpot_server_response.txt"\r'
|
||||||
|
|||||||
Reference in New Issue
Block a user