fix: températures en JSON string plutôt que nombre (spec conforme)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+3
-3
@@ -16,7 +16,7 @@ static String _buildJsonSondes() {
|
||||
s["nom"] = sondesConfig[i].nom;
|
||||
s["erreur"] = sondesEtat[i].erreur;
|
||||
if (!sondesEtat[i].erreur) {
|
||||
s["temp"] = serialized(String(sondesEtat[i].tempActuelle, 1));
|
||||
s["temp"] = String(sondesEtat[i].tempActuelle, 1);
|
||||
} else {
|
||||
s["temp"] = nullptr;
|
||||
}
|
||||
@@ -42,7 +42,7 @@ static String _buildJsonHistory() {
|
||||
if (isnan(historique[idx].temps[j])) {
|
||||
t.add(nullptr);
|
||||
} else {
|
||||
t.add(serialized(String(historique[idx].temps[j], 1)));
|
||||
t.add(String(historique[idx].temps[j], 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -89,7 +89,7 @@ void web_server_init() {
|
||||
for (uint8_t i = 0; i < NB_SONDES; i++) {
|
||||
String key = "sonde_" + String(i + 1);
|
||||
if (!sondesEtat[i].erreur) {
|
||||
doc[key] = serialized(String(sondesEtat[i].tempActuelle, 1));
|
||||
doc[key] = String(sondesEtat[i].tempActuelle, 1);
|
||||
} else {
|
||||
doc[key] = nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user