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