This commit is contained in:
PaulVua
2025-01-09 16:55:31 +01:00
parent 8619f7d3bf
commit 4df29fc157
10 changed files with 1580 additions and 1239 deletions

View File

@@ -368,7 +368,7 @@ try:
# 2.2 code 1 (HHTP succeded)
else:
# Si la commande HTTP a réussi
print('<span style="color: green; font-weight: bold;">HTTP operation successful.</span>')
print('<span class="badge text-bg-success">HTTP operation successful.</span>')
update_json_key(config_file, "SARA_R4_network_status", "connected")
print("Turning on the blue LED...")
for _ in range(4): # Faire clignoter 4 fois
@@ -382,7 +382,9 @@ try:
response_SARA_4 = read_complete_response(ser_sara)
if need_to_log:
print("Reply from server:")
print('<p class="text-success">')
print(response_SARA_4)
print('</p>')
#5. empty json
ser_sara.write(b'AT+UDELFILE="sensordata.json"\r')