mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 17:59:27 +02:00
Revert MQTT naming
This commit is contained in:
parent
4cf741a32b
commit
3fb362af09
2 changed files with 11 additions and 14 deletions
|
@ -48,15 +48,12 @@
|
|||
#endif
|
||||
|
||||
#ifdef SERIAL_LINK_RECEIVER // The serial thing does its thing
|
||||
void update_values_battery();
|
||||
void receive_can_battery();
|
||||
void send_can_battery();
|
||||
void setup_battery(void);
|
||||
#else
|
||||
void update_values_battery();
|
||||
void receive_can_battery(CAN_frame_t rx_frame);
|
||||
#endif
|
||||
void update_values_battery();
|
||||
void send_can_battery();
|
||||
void setup_battery(void);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -170,15 +170,15 @@ static void publish_common_info(void) {
|
|||
} else {
|
||||
snprintf(mqtt_msg, sizeof(mqtt_msg),
|
||||
"{\n"
|
||||
" \"system_scaled_SOC_pptt\": %.3f,\n"
|
||||
" \"system_SOH_pptt\": %.3f,\n"
|
||||
" \"system_temperature_min_dC\": %.3f,\n"
|
||||
" \"system_temperature_max_dC\": %.3f,\n"
|
||||
" \"system_active_power_W\": %.3f,\n"
|
||||
" \"system_battery_current_dA\": %.3f,\n"
|
||||
" \"system_cell_max_voltage_mV\": %.3f,\n"
|
||||
" \"system_cell_min_voltage_mV\": %.3f,\n"
|
||||
" \"system_battery_voltage_dV\": %d\n"
|
||||
" \"SOC\": %.3f,\n"
|
||||
" \"state_of_health\": %.3f,\n"
|
||||
" \"temperature_min\": %.3f,\n"
|
||||
" \"temperature_max\": %.3f,\n"
|
||||
" \"stat_batt_power\": %.3f,\n"
|
||||
" \"battery_current\": %.3f,\n"
|
||||
" \"cell_max_voltage\": %.3f,\n"
|
||||
" \"cell_min_voltage\": %.3f,\n"
|
||||
" \"battery_voltage\": %d\n"
|
||||
"}\n",
|
||||
((float)system_scaled_SOC_pptt) / 100.0, ((float)system_SOH_pptt) / 100.0,
|
||||
((float)((int16_t)system_temperature_min_dC)) / 10.0, ((float)((int16_t)system_temperature_max_dC)) / 10.0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue