Add W formatting and contactor state

This commit is contained in:
Daniel 2024-01-24 22:10:13 +02:00
parent ff228d9c7d
commit 3bfe61cb87
2 changed files with 50 additions and 5 deletions

View file

@ -118,4 +118,14 @@ void onOTAProgress(size_t current, size_t final);
*/
void onOTAEnd(bool success);
/**
* @brief Formats power values
*
* @param[in] float or uint16_t
*
* @return string: values
*/
template <typename T>
String formatPowerValue(String label, T value, String unit, int precision);
#endif