Changed json property names to better match the other properties

This commit is contained in:
Milenko Mitrovic 2021-12-19 11:58:41 +01:00
parent dc1fa0e50d
commit ecb3a07d2f
1 changed files with 6 additions and 6 deletions

View File

@ -2753,17 +2753,17 @@ void MI32GetOneSensorJson(int slot, int hidename){
#endif //USE_HOME_ASSISTANT
){
if (MI32.option.directBridgeMode) {
ResponseAppend_P(PSTR(",\"weight_removed\":%u"), p->weight_removed);
ResponseAppend_P(PSTR(",\"weight_stabilized\":%u"), p->weight_stabilized);
ResponseAppend_P(PSTR(",\"WeightRemoved\":%u"), p->weight_removed);
ResponseAppend_P(PSTR(",\"WeightStabilized\":%u"), p->weight_stabilized);
}
ResponseAppend_P(PSTR(",\"weight_unit\":\"%s\""), p->weight_unit);
ResponseAppend_P(PSTR(",\"weight\":%*_f"),
ResponseAppend_P(PSTR(",\"WeightUnit\":\"%s\""), p->weight_unit);
ResponseAppend_P(PSTR(",\"Weight\":%*_f"),
Settings->flag2.weight_resolution, &p->weight);
if (p->feature.impedance) {
if (MI32.option.directBridgeMode) {
ResponseAppend_P(PSTR(",\"impedance_stabilized\":%u"), p->impedance_stabilized);
ResponseAppend_P(PSTR(",\"ImpedanceStabilized\":%u"), p->impedance_stabilized);
}
ResponseAppend_P(PSTR(",\"impedance\":%u"), p->impedance);
ResponseAppend_P(PSTR(",\"Impedance\":%u"), p->impedance);
}
}
}